java.lang.Object | +--com.ibm.commerce.ras.ECLoggingProvider
ECLoggingProvider is used to configure the messages and write to output.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Method Detail |
---|
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
protected void finalize()
finalize
in class
java.lang.Object
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
logmethodName
- 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
logmethodName
- 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
logmethodName
- 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)
msg
- the ECMessage object whose text is written to the
logmethodName
- the name of the method that issued the logging of
this ECMessagepublic 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.methodName
- the name of the method that issued the logging of
this ECMessageexception
- 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