public class ReportLoggerImpl extends java.lang.Object implements ReportLogger
Constructor and Description |
---|
ReportLoggerImpl(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object message)
Log a message with debug log level.
|
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log an error with debug log level.
|
void |
error(java.lang.Object message)
Log a message with error log level.
|
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log an error with error log level.
|
void |
fatal(java.lang.Object message)
Log a message with fatal log level.
|
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log an error with fatal log level.
|
void |
info(java.lang.Object message)
Log a message with info log level.
|
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log an error with info log level.
|
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isWarnEnabled()
Is warning logging currently enabled?
|
void |
warn(java.lang.Object message)
Log a message with warn log level.
|
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log an error with warn log level.
|
public void debug(java.lang.Object message)
ReportLogger
Log a message with debug log level.
debug
in interface ReportLogger
message
- log this messagepublic void debug(java.lang.Object message, java.lang.Throwable t)
ReportLogger
Log an error with debug log level.
debug
in interface ReportLogger
message
- log this messaget
- log this causepublic void error(java.lang.Object message)
ReportLogger
Log a message with error log level.
error
in interface ReportLogger
message
- log this messagepublic void error(java.lang.Object message, java.lang.Throwable t)
ReportLogger
Log an error with error log level.
error
in interface ReportLogger
message
- log this messaget
- log this causepublic void fatal(java.lang.Object message)
ReportLogger
Log a message with fatal log level.
fatal
in interface ReportLogger
message
- log this messagepublic void fatal(java.lang.Object message, java.lang.Throwable t)
ReportLogger
Log an error with fatal log level.
fatal
in interface ReportLogger
message
- log this messaget
- log this causepublic void info(java.lang.Object message)
ReportLogger
Log a message with info log level.
info
in interface ReportLogger
message
- log this messagepublic void info(java.lang.Object message, java.lang.Throwable t)
ReportLogger
Log an error with info log level.
info
in interface ReportLogger
message
- log this messaget
- log this causepublic boolean isDebugEnabled()
ReportLogger
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatination)
when the log level is more than debug.
isDebugEnabled
in interface ReportLogger
public boolean isErrorEnabled()
ReportLogger
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatination)
when the log level is more than error.
isErrorEnabled
in interface ReportLogger
public boolean isFatalEnabled()
ReportLogger
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatination)
when the log level is more than fatal.
isFatalEnabled
in interface ReportLogger
public boolean isInfoEnabled()
ReportLogger
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatination)
when the log level is more than info.
isInfoEnabled
in interface ReportLogger
public boolean isWarnEnabled()
ReportLogger
Is warning logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String
concatination)
when the log level is more than warning.
isWarnEnabled
in interface ReportLogger
public void warn(java.lang.Object message)
ReportLogger
Log a message with warn log level.
warn
in interface ReportLogger
message
- log this messagepublic void warn(java.lang.Object message, java.lang.Throwable t)
ReportLogger
Log an error with warn log level.
warn
in interface ReportLogger
message
- log this messaget
- log this cause