|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the API into the logging service.
Create instances of this class as follows:
import com.bankframe.services.logger.ELogger;
import com.bankframe.services.logger.ELoggerFactory;
public class Foo {
log.getContext().push()
method adds the supplied string to all subsequent logging methodsisDebugEnabled()
before calling debug messages that involve expensive processing. This ensures run-time
performance is not affected by debugging statementslog.getContext().pop()
method when you no longer want to add contextual information to each logging message
Nested Class Summary | |
static interface |
ELogger.Context
This interface defines the logging context |
Field Summary | |
static java.lang.String |
DEFAULT_CONTEXT
|
Method Summary | |
void |
debug(java.lang.String msg)
This method outputs a DEBUG level message |
void |
debug(java.lang.String s,
java.lang.Throwable throwable)
This method outputs a DEBUG level message |
void |
error(java.lang.String s)
This method outputs a ERROR level message |
void |
error(java.lang.String s,
java.lang.Throwable throwable)
This method outputs a ERROR level message |
void |
fatal(java.lang.String s)
This method outputs a FATAL level message |
void |
fatal(java.lang.String s,
java.lang.Throwable throwable)
This method outputs a FATAL level message |
ELogger.Context |
getContext()
This method returns the Logging context |
void |
info(java.lang.String s)
This method outputs a INFO level message |
void |
info(java.lang.String s,
java.lang.Throwable throwable)
This method outputs a INFO level message |
boolean |
isDebugEnabled()
This method indicates whether debug level messages are enabled |
boolean |
isErrorEnabled()
This method indicates whether error level messages are enabled |
boolean |
isFatalEnabled()
This method indicates whether fatal level messages are enabled |
boolean |
isInfoEnabled()
This method indicates whether info level messages are enabled |
boolean |
isWarnEnabled()
This method indicates whether warn level messages are enabled |
void |
warn(java.lang.String s)
This method outputs a WARN level message |
void |
warn(java.lang.String s,
java.lang.Throwable throwable)
This method outputs a WARN level message |
Field Detail |
public static final java.lang.String DEFAULT_CONTEXT
Method Detail |
public boolean isDebugEnabled()
public boolean isInfoEnabled()
public boolean isWarnEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public void debug(java.lang.String msg)
msg
- The message to print outpublic void debug(java.lang.String s, java.lang.Throwable throwable)
public void info(java.lang.String s)
public void info(java.lang.String s, java.lang.Throwable throwable)
throwable
- The Throwable associated with this messagepublic void warn(java.lang.String s)
public void warn(java.lang.String s, java.lang.Throwable throwable)
throwable
- The Throwable associated with this messagepublic void error(java.lang.String s)
public void error(java.lang.String s, java.lang.Throwable throwable)
throwable
- The Throwable associated with this messagepublic void fatal(java.lang.String s)
public void fatal(java.lang.String s, java.lang.Throwable throwable)
throwable
- The Throwable associated with this messagepublic ELogger.Context getContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |