java.lang.Object | +--com.ibm.commerce.ras.ECMessageLog
ECMessageLog is the class used for logging messages issued by the WebSphere Commerce Application Server. The level of logging and the name of the file that ECMessageLog writes to is determined by the configuration found in the $INSTALLROOT/instances/$INSTANCE_NAME/xml/$INSTANCE_NAME.xml file, under "LogSystem" XML element.
This class expose static methods. The user will call the methods of this class without instantiating any object of this type.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Method Summary | |
---|---|
static void |
disable(long messageSeverity) Disables a specific message severity based on the message severity Id. |
static void |
disableLogging() Disables message logging. |
static void |
enable(long messageSeverity) Enables a specific message severity based on the message severity Id. |
static void |
enableLogging() Enables message logging. |
static boolean |
isLoggingEnabled() Check if message logging is enabled. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object parm1) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object[] parms) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object[] parms, java.lang.Throwable exc) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object parm1, java.lang.Object parm2) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object parm1, java.lang.Object parm2,
java.lang.Object parm3) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3,
java.lang.Object parm4) Writes the specified ECMessage to the log file. |
static void |
out(ECMessage msg,
java.lang.String className, java.lang.String methodName,
java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3,
java.lang.Object parm4, java.lang.Object parm5) Writes the specified ECMessage to the log file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Method Detail |
---|
public static void disable(long messageSeverity)
messageSeverity
- message severity idpublic static void disableLogging()
public static void enable(long messageSeverity)
messageSeverity
- message severity Idpublic static void enableLogging()
public static boolean isLoggingEnabled()
public static void out(ECMessage msg, java.lang.String className, java.lang.String methodName)
msg
- the ECMessage object whose text is written to the
logmethodName
- the name of the method that issued the logging of
this ECMessagepublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms)
msg
- the ECMessage object whose text is written to the
log.methodName
- the name of the method that issued the logging of
this ECMessageparms
- the array of parameters that will be substituted into
the message textpublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms, java.lang.Throwable exc)
msg
- the ECMessage object whose text is written to the
logmethodName
- the name of the method that issued the logging of
this ECMessageparms
- the array of parameters that will be substituted into
the message textexc
- the exception whose stack trace will be appended to the
message textpublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1)
msg
- the ECMessage object whose text is written to the
logmethodName
- the name of the method that issued the logging of
this ECMessageparm1
- value of the parameter to be substituted into the
message textpublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1, java.lang.Object parm2)
msg
- the ECMessage object whose text is written to the
log.methodName
- the name of the method that issued the logging of
this ECMessageparm1
- value of the first parameter to be substituted into
the message textparm2
- value of the second parameter to be substituted into
the message textpublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3)
msg
- the ECMessage object whose text is written to the
log.methodName
- the name of the method that issued the logging of
this ECMessageparm1
- value of the first parameter to be substituted into
the message textparm2
- value of the second parameter to be substituted into
the message textparm3
- value of the third parameter to be substituted into
the message textpublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3, java.lang.Object parm4)
msg
- the ECMessage object whose text is written to the
log.methodName
- the name of the method that issued the logging of
this ECMessageparm1
- value of the first parameter to be substituted into
the message textparm2
- value of the second parameter to be substituted into
the message textparm3
- value of the third parameter to be substituted into
the message textparm4
- value of the fourth parameter to be substituted into
the message textpublic static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3, java.lang.Object parm4, java.lang.Object parm5)
msg
- the ECMessage object whose text is written to the
logmethodName
- the name of the method that issued the logging of
this ECMessageparm1
- value of the first parameter to be substituted into
the message textparm2
- value of the second parameter to be substituted into
the message textparm3
- value of the third parameter to be substituted into
the message textparm4
- value of the fourth parameter to be substituted into
the message textparm5
- value of the fifth parameter to be substituted into
the message text