public class JarmLogger
extends com.ibm.ier.logtrace.BaseLogger
JARM logging class that wraps the functionality of the IER Common Log/Trace component (ierLogTrace.jar).
Modifier and Type | Method and Description |
---|---|
void |
error(RMLogCode code,
java.lang.Object... params)
Logs a message with the
ERROR level. |
void |
error(RMLogCode code,
java.lang.Throwable t,
java.lang.Object... params)
Logs a message with the
ERROR level including the stack trace of the
included Throwable t parameter. |
static JarmLogger |
getJarmLogger(java.lang.String loggerName)
Static method to acquire a new
JarmLogger instance. |
void |
info(RMLogCode code,
java.lang.Object... params)
Logs a message with the
INFO level. |
void |
info(RMLogCode code,
java.lang.Throwable t,
java.lang.Object... params)
Logs a message with the
INFO level including the stack trace of the
included Throwable t parameter. |
void |
warn(RMLogCode code,
java.lang.Object... params)
Logs a message with the
WARN level. |
void |
warn(RMLogCode code,
java.lang.Throwable t,
java.lang.Object... params)
Logs a message with the
WARN level including the stack trace of the
included Throwable t parameter. |
public static JarmLogger getJarmLogger(java.lang.String loggerName)
JarmLogger
instance.loggerName
- The name String
that defines this JarmLogger instance.
This entry cannot be empty or null
.JarmLogger
instance.public void error(RMLogCode code, java.lang.Object... params)
ERROR
level.
Intended for use during non-exception logging.code
- the RMLogCode
used to define the logging resource bundle key.params
- zero or more parameters used in formatting the logging message.public void error(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)
ERROR
level including the stack trace of the
included Throwable
t parameter.
This method first checks to see if the logger is enabled for the ERROR
level and, if so, proceeds to format the specified message with the given parameters.code
- the RMLogCode
used to define the logging resource bundle key.t
- Throwable
whose stack trace is included in the logging message.
This entry can be null
.params
- zero or more parameters used in formatting the logging message.public void warn(RMLogCode code, java.lang.Object... params)
WARN
level.
This method first checks to see if the logger is enabled for the WARN
level and, if so, proceeds to format the specified message with the given parameters.code
- the RMLogCode
used to define the logging resource bundle key.params
- zero or more parameters used in formatting the logging message.public void warn(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)
WARN
level including the stack trace of the
included Throwable
t parameter.
This method first checks to see if the logger is enabled for the WARN
level and, if so, proceeds to format the specified message with the given parameters.code
- the RMLogCode
used to define the logging resource bundle key.t
- Throwable
whose stack trace is included in the logging message.
This entry can be null
.params
- zero or more parameters used in formatting the logging message.public void info(RMLogCode code, java.lang.Object... params)
INFO
level.
This method first checks to see if the logger is enabled for the INFO
level and, if so, proceeds to format the specified message with the given parameters.code
- the RMLogCode
used to define the logging resource bundle key.params
- zero or more parameters used in formatting the logging message.public void info(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)
INFO
level including the stack trace of the
included Throwable
t parameter.
This method first checks to see if the logger is enabled for the INFO
level and, if so, proceeds to format the specified message with the given parameters.code
- the RMLogCode
used to define the logging resource bundle key.t
- Throwable
whose stack trace is included in the logging message.
This entry can be null
.params
- zero or more parameters used in formatting the logging message.© Copyright IBM Corp. 2010, 2013. All Rights Reserved.