com.ibm.jarm.api.util
Class JarmLogger
- java.lang.Object
-
- com.ibm.ier.logtrace.BaseLogger
-
- com.ibm.jarm.api.util.JarmLogger
-
public class JarmLogger extends com.ibm.ier.logtrace.BaseLoggerFor internal use only.JARM logging class that wraps the functionality of the IER Common Log/Trace component (ierLogTrace.jar).
-
-
Method Summary
Methods Modifier and Type Method and Description voiderror(RMLogCode code, java.lang.Object... params)Logs a message with theERRORlevel.voiderror(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)Logs a message with theERRORlevel including the stack trace of the includedThrowablet parameter.static JarmLoggergetJarmLogger(java.lang.String loggerName)Static method to acquire a newJarmLoggerinstance.voidinfo(RMLogCode code, java.lang.Object... params)Logs a message with theINFOlevel.voidinfo(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)Logs a message with theINFOlevel including the stack trace of the includedThrowablet parameter.voidwarn(RMLogCode code, java.lang.Object... params)Logs a message with theWARNlevel.voidwarn(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)Logs a message with theWARNlevel including the stack trace of the includedThrowablet parameter.
-
-
-
Method Detail
-
getJarmLogger
public static JarmLogger getJarmLogger(java.lang.String loggerName)
Static method to acquire a newJarmLoggerinstance.- Parameters:
loggerName- The nameStringthat defines this JarmLogger instance. This entry cannot be empty ornull.- Returns:
- A new
JarmLoggerinstance.
-
error
public void error(RMLogCode code, java.lang.Object... params)
Logs a message with theERRORlevel. Intended for use during non-exception logging.- Parameters:
code- theRMLogCodeused to define the logging resource bundle key.params- zero or more parameters used in formatting the logging message.
-
error
public void error(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)
Logs a message with theERRORlevel including the stack trace of the includedThrowablet parameter. This method first checks to see if the logger is enabled for theERRORlevel and, if so, proceeds to format the specified message with the given parameters.- Parameters:
code- theRMLogCodeused to define the logging resource bundle key.t-Throwablewhose stack trace is included in the logging message. This entry can benull.params- zero or more parameters used in formatting the logging message.
-
warn
public void warn(RMLogCode code, java.lang.Object... params)
Logs a message with theWARNlevel. This method first checks to see if the logger is enabled for theWARNlevel and, if so, proceeds to format the specified message with the given parameters.- Parameters:
code- theRMLogCodeused to define the logging resource bundle key.params- zero or more parameters used in formatting the logging message.
-
warn
public void warn(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)
Logs a message with theWARNlevel including the stack trace of the includedThrowablet parameter. This method first checks to see if the logger is enabled for theWARNlevel and, if so, proceeds to format the specified message with the given parameters.- Parameters:
code- theRMLogCodeused to define the logging resource bundle key.t-Throwablewhose stack trace is included in the logging message. This entry can benull.params- zero or more parameters used in formatting the logging message.
-
info
public void info(RMLogCode code, java.lang.Object... params)
Logs a message with theINFOlevel. This method first checks to see if the logger is enabled for theINFOlevel and, if so, proceeds to format the specified message with the given parameters.- Parameters:
code- theRMLogCodeused to define the logging resource bundle key.params- zero or more parameters used in formatting the logging message.
-
info
public void info(RMLogCode code, java.lang.Throwable t, java.lang.Object... params)
Logs a message with theINFOlevel including the stack trace of the includedThrowablet parameter. This method first checks to see if the logger is enabled for theINFOlevel and, if so, proceeds to format the specified message with the given parameters.- Parameters:
code- theRMLogCodeused to define the logging resource bundle key.t-Throwablewhose stack trace is included in the logging message. This entry can benull.params- zero or more parameters used in formatting the logging message.
-
-