| Modifier and Type | Field and Description |
|---|---|
| private final Logger | |
| private static final Map | loggers
Map of all known loggers. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static Logger | |
| public void | |
| public void | |
| public boolean | Returns: true if this logger is enabled for level DEBUG, false otherwise.Check whether this logger is enabled for the DEBUG Level. |
| public boolean | Returns: true if this logger is enabled for level INFO, false otherwise.Check whether this logger is enabled for the INFO Level. |
| public boolean | Returns: true if this logger is enabled for level TRACE, false otherwise.Check whether this logger is enabled for the TRACE Level. |
| public void | |
| public void | |
| public void | |
| public void |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| loggers | back to summary |
|---|---|
| private static final Map<Class<?>, Logger> loggers Map of all known loggers. | |
| Logger | back to summary |
|---|---|
| private Logger(Logger logger) | |
| debug | back to summary |
|---|---|
| public void debug(Object message) Log a message object with the DEBUG level. See Logger.trace(Object) form for more detailed information.
| |
| debug | back to summary |
|---|---|
| public void debug(Object message, Throwable t) Log a message object with the DEBUG level including the stack trace of the Throwable t passed as parameter. See Logger.trace(Object, Throwable) form for more detailed information. | |
| error | back to summary |
|---|---|
| public void error(Object message) Log a message object with the ERROR level. See Logger.trace(Object) form for more detailed information.
| |
| error | back to summary |
|---|---|
| public void error(Object message, Throwable t) Log a message object with the DEBUG level including the stack trace of the Throwable t passed as parameter. See Logger.trace(Object, Throwable) form for more detailed information. | |
| fatal | back to summary |
|---|---|
| public void fatal(Object message) Log a message object with the FATAL level. See Logger.trace(Object) form for more detailed information.
| |
| fatal | back to summary |
|---|---|
| public void fatal(Object message, Throwable t) Log a message object with the FATAL level including the stack trace of the Throwable t passed as parameter. See Logger.trace(Object, Throwable) form for more detailed information. | |
| getLogger | back to summary |
|---|---|
| public static Logger getLogger(Class<?> pClass) Retrieve a logger named according to the value of the pClass.getName() parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created. By default, loggers do not have a set level but inherit it from their nearest ancestor with a set level. | |
| info | back to summary |
|---|---|
| public void info(Object message) Log a message object with the INFO level. See Logger.trace(Object) form for more detailed information.
| |
| info | back to summary |
|---|---|
| public void info(Object message, Throwable t) Log a message object with the WARN level including the stack trace of the Throwable t passed as parameter. See Logger.trace(Object, Throwable) form for more detailed information. | |
| isDebugEnabled | back to summary |
|---|---|
| public boolean isDebugEnabled() Check whether this logger is enabled for the DEBUG Level.
| |
| isInfoEnabled | back to summary |
|---|---|
| public boolean isInfoEnabled() Check whether this logger is enabled for the INFO Level.
| |
| isTraceEnabled | back to summary |
|---|---|
| public boolean isTraceEnabled() Check whether this logger is enabled for the TRACE Level.
| |
| trace | back to summary |
|---|---|
| public void trace(Object message) Log a message object with the TRACE level. This method first checks if this logger is TRACE enabled. If this logger is TRACE enabled, then it converts the message object (passed as parameter) to a string by invoking toString(). WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the trace(Object, Throwable) form instead.
| |
| trace | back to summary |
|---|---|
| public void trace(Object message, Throwable t) Log a message object with the TRACE level including the stack trace of the Throwable t passed as parameter. See Logger.trace(Object) form for more detailed information. | |
| warn | back to summary |
|---|---|
| public void warn(Object message) Log a message object with the WARN level. See Logger.trace(Object) form for more detailed information.
| |
| warn | back to summary |
|---|---|
| public void warn(Object message, Throwable t) Log a message object with the ERROR level including the stack trace of the Throwable t passed as parameter. See Logger.trace(Object, Throwable) form for more detailed information. | |