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.
|
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.
|
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)
disable
in interface ILoggingService
messageSeverity
- message severity id to be disabledpublic void disable(java.lang.String messageSeverity)
disable
in interface ILoggingService
messageSeverity
- message severity to be disabledpublic void disableLogging()
disableLogging
in interface ILoggingService
public void enable(long messageSeverity)
enable
in interface ILoggingService
messageSeverity
- message severity Id to be enabledpublic void enable(java.lang.String messageSeverity)
enable
in interface ILoggingService
messageSeverity
- message severity to be enabledpublic void enableLogging()
enableLogging
in interface ILoggingService
public static java.lang.String getNotificationClassName()
public static long getSeverity(java.lang.Object sev)
sev
- message severity namepublic static ECLoggingProvider getUniqueInstance()
public static boolean isLoggable(long type)
type
- the message severity typepublic boolean isLoggable(ECMessage msg)
isLoggable
in interface ILoggingService
msg
- the message objectpublic boolean isLoggingEnabled()
isLoggingEnabled
in interface ILoggingService
public void out(ECMessage msg, java.lang.String className, java.lang.String methodName)
out
in interface ILoggingService
msg
- the ECMessage object whose text is written to the logclassname
- the name of the class that issued the logging of this ECMessagemethodName
- the name of the method that issued the logging of this ECMessagepublic void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms)
out
in interface ILoggingService
msg
- the ECMessage object whose text is written to the logclassname
- the name of the class that issued the logging of this ECMessagemethodName
- the name of the method that issued the logging of this ECMessageparms
- the list of parameters that will be substituted into the message textpublic void out(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] parms, java.lang.Throwable exc)
out
in interface ILoggingService
msg
- the ECMessage object whose text is written to the logclassname
- the name of the class that issued the logging of this ECMessagemethodName
- the name of the method that issued the logging of this ECMessageparms
- the list of parameters that will be substituted into the message textexec
- Throwable exception associated to the error messagepublic void outputMessage(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] params)
msg
- the ECMessage object whose text is written to the logclassname
- the name of the class that issued the logging of this ECMessagemethodName
- the name of the method that issued the logging of this ECMessageparms
- the list of parameters that will be substituted into the message textpublic void outputMessage(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] params, java.lang.Throwable exception)
msg
- the ECMessage object whose text is written to the log.classname
- the name of the class that issued the logging of this ECMessagemethodName
- the name of the method that issued the logging of this ECMessageparms
- the list of parameters that will be substituted into the message textexception
- Throwable exception associated to the error message.public void overrideMask(long messageSeverity)
public static void setNotificationClassName(java.lang.String name)
name
- the class name for the error notification