Package com.jk.core.logging
Class JKLogger
java.lang.Object
com.jk.core.logging.JKLogger
This class provides logging functionality using the underlying Logger
 implementation.
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidThis method logs a message at the DEBUG level according to the specified format and arguments.voidThis method logs an exception (throwable) at the DEBUG level with an accompanying message.voidThis method logs a message at the ERROR level according to the specified format and arguments.voidThis method logs an exception (throwable) at the ERROR level with an accompanying message.voidThis method logs an exception (throwable) at the ERROR level with an accompanying message.voidThis method logs a message at the INFO level according to the specified format and arguments.voidThis method logs an exception (throwable) at the INFO level with an accompanying message.booleanThis method checks whether the logger instance enabled for the DEBUG level or not.voidThis method logs a message at the TRACE level according to the specified format and arguments.voidThis method logs an exception (throwable) at the TRACE level with an accompanying message.voidThis method logs a message at the WARN level according to the specified format and arguments. 
- 
Constructor Details
- 
JKLogger
This method initiates a newJKLoggerwith the specified name.- Parameters:
 name- Specifies the logger name.
 
 - 
 - 
Method Details
- 
info
This method logs a message at the INFO level according to the specified format and arguments.- Parameters:
 format- Specifies the format for the informational message.msg- Specifies the message arguments.
 - 
info
This method logs an exception (throwable) at the INFO level with an accompanying message.- Parameters:
 msg- Specifying the message accompanying the exception.exception- Specifies the exception (throwable) to log.
 - 
debug
This method logs a message at the DEBUG level according to the specified format and arguments.- Parameters:
 format- Specifies the format for the informational message.msg- Specifies the message arguments.
 - 
debug
This method logs an exception (throwable) at the DEBUG level with an accompanying message.- Parameters:
 msg- Specifying the message accompanying the exception.exception- Specifies the exception (throwable) to log.
 - 
trace
This method logs a message at the TRACE level according to the specified format and arguments.- Parameters:
 format- Specifies the format for the informational message.msg- Specifies the message arguments.
 - 
trace
This method logs an exception (throwable) at the TRACE level with an accompanying message.- Parameters:
 msg- Specifying the message accompanying the exception.exception- Specifies the exception (throwable) to log.
 - 
error
This method logs a message at the ERROR level according to the specified format and arguments.- Parameters:
 format- Specifies the format for the informational message.msg- Specifies the message arguments.
 - 
error
This method logs an exception (throwable) at the ERROR level with an accompanying message.- Parameters:
 msg- Specifying the message accompanying the exception.exception- Specifies the exception (throwable) to log.
 - 
error
This method logs an exception (throwable) at the ERROR level with an accompanying message.- Parameters:
 throwable- Specifies the exception (throwable) to log.
 - 
isDebugEnabled
public boolean isDebugEnabled()This method checks whether the logger instance enabled for the DEBUG level or not.- Returns:
 - true, if is debug enabled, false otherwise.
 
 - 
warn
This method logs a message at the WARN level according to the specified format and arguments.- Parameters:
 format- Specifies the format for the informational message.msg- Specifies the message arguments.
 
 -