|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
Method Summary | |
void |
disable(long messageSeverity)
This method is called to disable a specific message severity |
void |
disable(java.lang.String messageSeverity)
This method is called to disable a specific message severity |
void |
disableLogging()
This method is called to disable message logging |
void |
enable(long messageSeverity)
This method is called to enable a specific message severity |
void |
enable(java.lang.String messageSeverity)
This method is called to enable a specific message severity |
void |
enableLogging()
This method is called to enable message logging |
protected void |
finalize()
Method to perform garbage collect when ECMessageLog is no longer referenced. |
static java.lang.String |
getNotificationClassName()
This method is called to get the class name of Error Notification |
static long |
getSeverity(java.lang.Object sev)
This method is called to get the Logging Severity |
static ECLoggingProvider |
getUniqueInstance()
|
boolean |
isLoggable(ECMessage msg)
Determines if a log entry will be processed by the logger and any of the handlers. |
static boolean |
isLoggable(long type)
Determines if a log entry will be processed by the logger and any of the handlers. |
boolean |
isLoggingEnabled()
This method is called to check if a specific message severity 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)
|
static void |
setNotificationClassName(java.lang.String 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
message
- severity longpublic void disable(java.lang.String messageSeverity)
disable
in interface ILoggingService
message
- severity Stringpublic void disableLogging()
disableLogging
in interface ILoggingService
public void enable(long messageSeverity)
enable
in interface ILoggingService
message
- severity longpublic void enable(java.lang.String messageSeverity)
enable
in interface ILoggingService
message
- severity Stringpublic 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)
There are five type of severity: ERROR, DEBUG, WARNING,STATUS, INFO
public static ECLoggingProvider getUniqueInstance()
public boolean isLoggable(ECMessage msg)
if (isLoggable(RASTraceEvent.TYPE_PUBLIC) trace(RASTraceEvent.TYPE_PUBLIC...);
isLoggable
in interface ILoggingService
type
- The type of the log entry. The set of possible values is
defined by the RASIMessageEvent.TYPE_XXXX
or RASITraceEvent.TYPE_XXXX
constants.true
if the logger is enabled and at least one
handler will process the log entry; false
,
otherwise.public static boolean isLoggable(long type)
if (isLoggable(RASTraceEvent.TYPE_PUBLIC) trace(RASTraceEvent.TYPE_PUBLIC...);
type
- The type of the log entry. The set of possible values is
defined by the RASIMessageEvent.TYPE_XXXX
or RASITraceEvent.TYPE_XXXX
constants.true
if the logger is enabled and at least one
handler will process the log entry; false
,
otherwise.public boolean isLoggingEnabled()
ILoggingService
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 log.classname
- The name of the class that issued the logging of this ECMessage.methodName
- The name of the method that issued the logging of this ECMessage.public 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 log.classname
- The name of the class that issued the logging of this ECMessage.methodName
- The name of the method that issued the logging of this ECMessage.parms
- The list of parameters that will be substituted into the message text.public 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 log.classname
- The name of the class that issued the logging of this ECMessage.methodName
- The name of the method that issued the logging of this ECMessage.parms
- The list of parameters that will be substituted into the message text.Throwable
- exception.public 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 log.classname
- The name of the class that issued the logging of this ECMessage.methodName
- The name of the method that issued the logging of this ECMessage.parms
- The list of parameters that will be substituted into the message text.public 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 ECMessage.methodName
- The name of the method that issued the logging of this ECMessage.parms
- The list of parameters that will be substituted into the message text.Throwable
- exception.public void overrideMask(long messageSeverity)
public static void setNotificationClassName(java.lang.String name)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |