public interface ILogger
Note: Documentation taken from Log4j Javadoc documentation.
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVITY_LOG |
static int |
DEBUG
The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
|
static int |
ERROR
The ERROR level designates error events that might still allow the application to continue running.
|
static int |
FATAL
The FATAL level designates very severe error events that will presumably lead the application to abort.
|
static int |
INFO
The INFO level designates informational messages that highlight the progress of the application at
coarse-grained level.
|
static String |
INSTANCE_LOG |
static String |
SESSION_LOG |
static String |
SOLUTION_LOG |
static int |
TRACE
The TRACE has the lowest possible rank and is intended to turn on all logging.
|
static int |
UNKNOWN |
static int |
WARN
The WARN level designates potentially harmful situations.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Log a message object with the
DEBUG Level. |
void |
debug(String message,
Throwable error)
Log a message with the
DEBUG level including the stack trace of the Throwable error passed as
parameter. |
void |
error(String message)
Log a message object with the
ERROR Level. |
void |
error(String message,
Throwable error)
Log a message with the
ERROR level including the stack trace of the Throwable error passed as
parameter. |
void |
fatal(String message)
Log a message object with the
FATAL Level. |
void |
fatal(String message,
Throwable error)
Log a message with the
FATAL level including the stack trace of the Throwable error passed as
parameter. |
int |
getLoggingLevel()
Return the logging level for this Logger.
|
void |
info(String message)
Log a message object with the
INFO Level. |
void |
info(String message,
Throwable error)
Log a message with the
INFO level including the stack trace of the Throwable error passed as
parameter. |
void |
setLoggingLevel(int loggingLevel)
Set the logging level for this Logger.
|
void |
trace(String message)
Log a message object with the
TRACE Level. |
void |
trace(String message,
Throwable error)
Log a message with the
TRACE level including the stack trace of the Throwable error passed as
parameter. |
void |
warn(String message)
Log a message object with the
WARN Level. |
void |
warn(String message,
Throwable error)
Log a message with the
WARN level including the stack trace of the Throwable error passed as
parameter. |
static final int TRACE
static final int DEBUG
static final int INFO
static final int WARN
static final int ERROR
static final int FATAL
static final int UNKNOWN
static final String SOLUTION_LOG
static final String ACTIVITY_LOG
static final String INSTANCE_LOG
static final String SESSION_LOG
int getLoggingLevel()
void setLoggingLevel(int loggingLevel)
Valid logging levels are TRACE
, DEBUG
, INFO
, WARN
,
ERROR
, and FATAL
.
loggingLevel
- void trace(String message)
TRACE
Level.message
- the message object to log.void debug(String message)
DEBUG
Level.message
- the message object to log.void info(String message)
INFO
Level.message
- the message object to log.void warn(String message)
WARN
Level.message
- the message object to log.void error(String message)
ERROR
Level.message
- the message object to log.void fatal(String message)
FATAL
Level.message
- the message object to log.void trace(String message, Throwable error)
TRACE
level including the stack trace of the Throwable error passed as
parameter.message
- the message object to log.error
- the exception to log, including its stack trace.void debug(String message, Throwable error)
DEBUG
level including the stack trace of the Throwable error passed as
parameter.message
- the message object to log.error
- the exception to log, including its stack trace.void info(String message, Throwable error)
INFO
level including the stack trace of the Throwable error passed as
parameter.message
- the message object to log.error
- the exception to log, including its stack trace.void warn(String message, Throwable error)
WARN
level including the stack trace of the Throwable error passed as
parameter.message
- the message object to log.error
- the exception to log, including its stack trace.void error(String message, Throwable error)
ERROR
level including the stack trace of the Throwable error passed as
parameter.message
- the message object to log.error
- the exception to log, including its stack trace.Copyright © 2020 Hitachi Vantara. All rights reserved.