|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.twss.platform.ServicePlatformLogger
public class ServicePlatformLogger
Service Platform Logger object.
Field Summary | |
---|---|
static int |
TRACE_ALL
Used for all logged messages. |
static int |
TRACE_FINE
Provides basic tracing information. |
static int |
TRACE_FINER
Provides fairly detailed tracing information. |
static int |
TRACE_FINEST
Provides the highest level of tracing detail. |
static int |
TRACE_INFO
Used for informational messages. |
static int |
TRACE_OFF
Turns off tracing. |
static int |
TRACE_SEVERE
Used for severe messages. |
static int |
TRACE_WARNING
Used for warning messages. |
Method Summary | |
---|---|
static ServicePlatformLogger |
getLogger(java.lang.Class cls)
Creates a wrapped trace logger for use in logging information about class method execution. |
boolean |
isLoggingEnabled(int level)
Indicates whether this logging level is enabled. |
void |
log(int level,
java.lang.String method,
java.lang.String msg)
Generic logging method that allows for logging at any level. |
void |
log(int level,
java.lang.String method,
java.lang.String msg,
java.lang.Object param)
Generic logging method that allows for logging at any level, and includes a single object parameter to the log message. |
void |
log(int level,
java.lang.String method,
java.lang.String msg,
java.lang.Object[] params)
Generic logging method that allows for logging at any level, and includes a list of parameters to substitute within the message. |
void |
logException(java.lang.String method,
java.lang.Exception ex)
Logs an exception to the console. |
void |
logException(java.lang.String method,
java.lang.Exception ex,
java.lang.Object ox)
Logs an exception to the console. |
void |
logInfo(java.lang.String method,
java.lang.String s)
Logs informational messages that are intended to be read by operators, system administrations, and service people. |
void |
logSevere(java.lang.String method,
java.lang.String s)
Logs severe messages that are intended to be read by operators, system administrations, and service people. |
void |
logWarning(java.lang.String method,
java.lang.String s)
Logs warning messages that are intended to be read by operators, system administrations, and service people. |
void |
trace(int traceLevel,
java.lang.String method,
java.lang.String s)
Outputs trace information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRACE_OFF
public static final int TRACE_FINE
public static final int TRACE_FINER
public static final int TRACE_FINEST
public static final int TRACE_INFO
public static final int TRACE_SEVERE
public static final int TRACE_WARNING
public static final int TRACE_ALL
Method Detail |
---|
public static ServicePlatformLogger getLogger(java.lang.Class cls)
cls
- The name of the class associated with this logger
public boolean isLoggingEnabled(int level)
level
- The level to log
public void log(int level, java.lang.String method, java.lang.String msg)
level
- The logging level to usemethod
- The method performing hte loggingmsg
- The message to logpublic void log(int level, java.lang.String method, java.lang.String msg, java.lang.Object param)
level
- The logging level to usemethod
- The method performing the loggingmsg
- The message to logparam
- The object parameter to substitute in the messagepublic void log(int level, java.lang.String method, java.lang.String msg, java.lang.Object[] params)
level
- The logging level to usemethod
- The method performing the loggingmsg
- The message to logparams
- The parameters to substitute in the form of {0}, {1}, etc.public void logInfo(java.lang.String method, java.lang.String s)
method
- The method from where the logging is being performeds
- The message stringpublic void trace(int traceLevel, java.lang.String method, java.lang.String s)
method
- The method from where the logging is being performeds
- The message stringpublic void logWarning(java.lang.String method, java.lang.String s)
method
- The method from where the logging is being performeds
- The message stringpublic void logSevere(java.lang.String method, java.lang.String s)
method
- The method from where the logging is being performeds
- The message stringpublic void logException(java.lang.String method, java.lang.Exception ex)
method
- THe method logging the exceptionex
- The exception being loggedpublic void logException(java.lang.String method, java.lang.Exception ex, java.lang.Object ox)
method
- THe method logging the exceptionex
- The exception being loggedox
- The object to write to the FFDC log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |