public final class ECMessageLog
extends java.lang.Object
ECMessageLog
writes are determined
by the configuration found in an XML file. In this case, this is specified to be the
$INSTALLROOT/instances/$INSTANCE_NAME/xml/$INSTANCE_NAME.xml
file,
under the "LogSystem" XML element.
This class exposes static methods. The user will call the methods of this class without instantiating any objects of this type.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static void |
disable(long messageSeverity)
This method disables a specific message severity based on the message severity id.
|
static void |
disableLogging()
This method disables message logging.
|
static void |
enable(long messageSeverity)
This method enables a specific message severity based on the message severity id.
|
static void |
enableLogging()
This method enables message logging.
|
static boolean |
isLoggingEnabled()
This method determines whether message logging is enabled.
|
static void |
out(ECMessage msg,
java.lang.String className,
java.lang.String methodName)
This method writes the specified
ECMessage object to the log file. |
static void |
out(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object parm1)
This method writes the specified
ECMessage object to the log file. |
static void |
out(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] parms)
This method writes the specified
ECMessage object 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)
This method writes the specified
ECMessage object 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)
This method writes the specified
ECMessage object 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)
This method writes the specified
ECMessage object 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)
This method writes the specified
ECMessage object 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)
This method writes the specified
ECMessage object to the log file. |
public static final java.lang.String COPYRIGHT
public static void disable(long messageSeverity)
messageSeverity
- This is the message severity id.public static void disableLogging()
public static void enable(long messageSeverity)
messageSeverity
- This is the message severity id.public static void enableLogging()
public static boolean isLoggingEnabled()
public static void out(ECMessage msg, java.lang.String className, java.lang.String methodName)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.public static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parms
- This is an array of parameters that will be substituted into the message text.public static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms, java.lang.Throwable exc)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parms
- This is an array of parameters that will be substituted into the message text.exc
- This is the exception whose stack trace will be appended to the message text.public static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parm1
- This is the value of the parameter to be substituted into the message text.public static void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object parm1, java.lang.Object parm2)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parm1
- This is the value of the first parameter to be substituted into the message text.parm2
- This is the value of the second parameter to be substituted into the message text.public 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)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parm1
- This is the value of the first parameter to be substituted into the message text.parm2
- This is the value of the second parameter to be substituted into the message text.parm3
- This is the value of the third parameter to be substituted into the message text.public 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)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parm1
- This is the value of the first parameter to be substituted into the message text.parm2
- This is the value of the second parameter to be substituted into the message text.parm3
- This is the value of the third parameter to be substituted into the message text.parm4
- This is the value of the fourth parameter to be substituted into the message text.public 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)
ECMessage
object to the log file.msg
- This is the ECMessage
object whose text is written to the log.classname
- This is the name of the class that issued the logging of this ECMessage
object.methodName
- This is the name of the method that issued the logging of this ECMessage
object.parm1
- This is the value of the first parameter to be substituted into the message text.parm2
- This is the value of the second parameter to be substituted into the message text.parm3
- This is the value of the third parameter to be substituted into the message text.parm4
- This is the value of the fourth parameter to be substituted into the message text.parm5
- This is the value of the fifth parameter to be substituted into the message text.