public final class ECLoggingProvider extends java.lang.Object implements ILoggingService
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
void | disable(long messageSeverity)
Disables a specific message severity based on the message severity Id.
|
void | disable(java.lang.String messageSeverity)
Disables a specific message severity based on the message severity name.
|
void | disableLogging()
Disables message logging.
|
void | enable(long messageSeverity)
Enables a specific message severity based on the message severity Id.
|
void | enable(java.lang.String messageSeverity)
Enable a specific message severity based on the message severity name.
|
void | enableLogging()
Enables message logging.
|
protected void | finalize()
Performs garbage collect when ECMessageLog is no longer referenced.
|
static java.lang.String | getNotificationClassName()
Gets the class name of Error Notification
|
static long | getSeverity(java.lang.Object sev)
Gets the message Severity Id based on the severity name.
|
static ECLoggingProvider | getUniqueInstance()
Gets the unique instance of the ECLoggingProvider class.
|
protected static void | initialize()
Initializes of message logging variables and loads the initial status.
|
boolean | isLoggable(ECMessage msg)
Determines if the given message object will be processed by the logger and any of the handlers.
|
static boolean | isLoggable(long type)
Determines if the specified logging severity type will be processed by the logger and any of the handlers.
|
boolean | isLoggingEnabled()
Checks if the message logging is enabled.
|
void | out(ECMessage msg, java.lang.String className, java.lang.String methodName)
Writes the specified ECMessage to the log file.
|
void | out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms)
Writes the specified ECMessage to the log file.
|
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.
|
void | outputMessage(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] params)
Writes the specified ECMessage to the log file.
|
void | outputMessage(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] params, java.lang.Throwable exception)
Writes the specified ECMessage to the log file.
|
void | overrideMask(long messageSeverity)
Overrides the message mask to keep track of which message severities will be logged.
|
static void | setNotificationClassName(java.lang.String name)
Sets the error notification class name.
|
public static final java.lang.String COPYRIGHT
public void disable(long messageSeverity)
public void disable(java.lang.String messageSeverity)
public void disableLogging()
public void enable(long messageSeverity)
public void enable(java.lang.String messageSeverity)
public void enableLogging()
protected void finalize()
public static java.lang.String getNotificationClassName()
public static long getSeverity(java.lang.Object sev)
public static ECLoggingProvider getUniqueInstance()
protected static void initialize()
public static boolean isLoggable(long type)
public boolean isLoggable(ECMessage msg)
public boolean isLoggingEnabled()
public void out(ECMessage msg, java.lang.String className, java.lang.String methodName)
public void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms)
public void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms, java.lang.Throwable exc)
public void outputMessage(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] params)
public void outputMessage(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] params, java.lang.Throwable exception)
public void overrideMask(long messageSeverity)
public static void setNotificationClassName(java.lang.String name)