java.lang.Objectorg.objectweb.telosys.common.TelosysClassLogger
This class manages logging messages for the Java classes that are not TelosysObject descendent.
Same principle as the trace management in TelosysObject
but designed to be held as a static private attribute in the class that used it.
Constructor Summary | |
TelosysClassLogger(java.lang.Class cl)
Constructs a logs manager instance dedicated for the given Java class |
Method Summary | |
void |
error(java.lang.String s)
Logs a standard ERROR message, using the active loggers |
void |
error(java.lang.String sMsg,
java.lang.Throwable exception)
Logs the given ERROR message and exception, using the active loggers |
void |
error(java.lang.Throwable exception)
Logs the given exception, using the active loggers |
void |
info(java.lang.String s)
Logs a standard INFO message, using the active loggers |
void |
trace(java.lang.String s)
Logs a standard TRACE message, using the active loggers, only if the trace flag is "true" for the Java class managed |
void |
warn(java.lang.String s)
Logs a standard WARN message, using the active loggers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TelosysClassLogger(java.lang.Class cl)
cl
- the class to managedMethod Detail |
public void trace(java.lang.String s)
s
- the message to logpublic void error(java.lang.String s)
s
- the message to logpublic void error(java.lang.Throwable exception)
exception
- : the exception to logpublic void error(java.lang.String sMsg, java.lang.Throwable exception)
sMsg
- : the error messageexception
- : the exceptionpublic void info(java.lang.String s)
s
- the message to logpublic void warn(java.lang.String s)
s
- the message to log