JavaScript is disabled on your browser.
All Implemented Interfaces:
ILogger
Direct Known Subclasses:
LoggerAdapterConsole , LoggerAdapterDefault , LoggerAdapterJava
public abstract class LoggerAdapterAbstract
extends Object
implements ILogger
Abstract base adapter which contains a convenience class for formatting
log4j2-style messages and also routes all level-specific overloads to calls
to log , which can simplify some implementations.
Nested Class Summary
Nested Classes
static class
This is a very naive implementation of log4j2's ParameterizedMessage
which is less efficient and less defensive because it doesn't need
to handle all the cases that the log4j2 formatter does.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
void
Logs an exception or error that has been caught.
void
Logs a message with parameters at the
DEBUG level.
void
Logs a message at the
DEBUG level including the
stack trace of the
Throwable t passed as parameter.
void
Logs a message with parameters at the
ERROR level
void
Logs a message at the
ERROR level including the
stack trace of the
Throwable t passed as parameter.
void
Logs a message with parameters at the
FATAL level.
void
Logs a message at the
FATAL level including the
stack trace of the
Throwable t passed as parameter.
Get the id of this logger
void
Logs a message with parameters at the
INFO level.
void
Logs a message at the
INFO level including the
stack trace of the
Throwable t passed as parameter.
void
Logs a message with parameters at the
TRACE level.
void
Logs a message at the
TRACE level including the
stack trace of the
Throwable t passed as parameter.
void
Logs a message with parameters at the
WARN level.
void
Logs a message at the
WARN level including the
stack trace of the
Throwable t passed as parameter.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
LoggerAdapterAbstract
protected LoggerAdapterAbstract (String id)
Parameters:
id - Logger id
Method Details
getId
Get the id of this logger
Specified by:
getId in interface ILogger
catching
Description copied from interface: ILogger
Logs an exception or error that has been caught.
Specified by:
catching in interface ILogger
Parameters:
t - The Throwable.
debug
Description copied from interface: ILogger
Logs a message with parameters at the
DEBUG level.
Specified by:
debug in interface ILogger
Parameters:
message - the message to log
params - parameters to the message
debug
Description copied from interface: ILogger
Logs a message at the
DEBUG level including the
stack trace of the
Throwable t passed as parameter.
Specified by:
debug in interface ILogger
Parameters:
message - the message to log
t - the exception to log, including its stack trace
error
Description copied from interface: ILogger
Logs a message with parameters at the
ERROR level
Specified by:
error in interface ILogger
Parameters:
message - the message to log
params - parameters to the message
error
Description copied from interface: ILogger
Logs a message at the
ERROR level including the
stack trace of the
Throwable t passed as parameter.
Specified by:
error in interface ILogger
Parameters:
message - the message object to log
t - the exception to log, including its stack trace
fatal
Description copied from interface: ILogger
Logs a message with parameters at the
FATAL level.
Specified by:
fatal in interface ILogger
Parameters:
message - the message to log
params - parameters to the message
fatal
Description copied from interface: ILogger
Logs a message at the
FATAL level including the
stack trace of the
Throwable t passed as parameter.
Specified by:
fatal in interface ILogger
Parameters:
message - the message object to log
t - the exception to log, including its stack trace
info
Description copied from interface: ILogger
Logs a message with parameters at the
INFO level.
Specified by:
info in interface ILogger
Parameters:
message - the message to log
params - parameters to the message
info
Description copied from interface: ILogger
Logs a message at the
INFO level including the
stack trace of the
Throwable t passed as parameter.
Specified by:
info in interface ILogger
Parameters:
message - the message object to log
t - the exception to log, including its stack trace
trace
Description copied from interface: ILogger
Logs a message with parameters at the
TRACE level.
Specified by:
trace in interface ILogger
Parameters:
message - the message to log
params - parameters to the message
trace
Description copied from interface: ILogger
Logs a message at the
TRACE level including the
stack trace of the
Throwable t passed as parameter.
Specified by:
trace in interface ILogger
Parameters:
message - the message object to log
t - the exception to log, including its stack trace
warn
Description copied from interface: ILogger
Logs a message with parameters at the
WARN level.
Specified by:
warn in interface ILogger
Parameters:
message - the message to log
params - parameters to the message
warn
Description copied from interface: ILogger
Logs a message at the
WARN level including the
stack trace of the
Throwable t passed as parameter.
Specified by:
warn in interface ILogger
Parameters:
message - the message object to log
t - the exception to log, including its stack trace