|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ELogger
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 String |
DEFAULT_CONTEXT
|
| Method Summary | |
|---|---|
void |
debug(String msg)
This method outputs a DEBUG level message |
void |
debug(String s,
Throwable throwable)
This method outputs a DEBUG level message |
void |
error(String s)
This method outputs a ERROR level message |
void |
error(String s,
Throwable throwable)
This method outputs a ERROR level message |
void |
fatal(String s)
This method outputs a FATAL level message |
void |
fatal(String s,
Throwable throwable)
This method outputs a FATAL level message |
ELogger.Context |
getContext()
This method returns the Logging context |
void |
info(String s)
This method outputs a INFO level message |
void |
info(String s,
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(String s)
This method outputs a WARN level message |
void |
warn(String s,
Throwable throwable)
This method outputs a WARN level message |
| Field Detail |
|---|
static final String DEFAULT_CONTEXT
| Method Detail |
|---|
boolean isDebugEnabled()
boolean isInfoEnabled()
boolean isWarnEnabled()
boolean isErrorEnabled()
boolean isFatalEnabled()
void debug(String msg)
msg - The message to print out
void debug(String s,
Throwable throwable)
s - String The message to print outthrowable - Throwablevoid info(String s)
s - String The message to print out
void info(String s,
Throwable throwable)
s - String The message to print outthrowable - The Throwable associated with this messagevoid warn(String s)
s - String The message to print out
void warn(String s,
Throwable throwable)
s - String The message to print outthrowable - The Throwable associated with this messagevoid error(String s)
s - String The message to print out
void error(String s,
Throwable throwable)
s - String The message to print outthrowable - The Throwable associated with this messagevoid fatal(String s)
s - String The message to print out
void fatal(String s,
Throwable throwable)
s - String The message to print outthrowable - The Throwable associated with this messageELogger.Context getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||