org.objectweb.telosys.common
Class TelosysClassLogger

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysClassLogger

public class TelosysClassLogger
extends java.lang.Object

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

TelosysClassLogger

public TelosysClassLogger(java.lang.Class cl)
Constructs a logs manager instance dedicated for the given Java class

Parameters:
cl - the class to managed
Method Detail

trace

public 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

Parameters:
s - the message to log

error

public void error(java.lang.String s)
Logs a standard ERROR message, using the active loggers

Parameters:
s - the message to log

error

public void error(java.lang.Throwable exception)
Logs the given exception, using the active loggers

Parameters:
exception - : the exception to log

error

public void error(java.lang.String sMsg,
                  java.lang.Throwable exception)
Logs the given ERROR message and exception, using the active loggers

Parameters:
sMsg - : the error message
exception - : the exception

info

public void info(java.lang.String s)
Logs a standard INFO message, using the active loggers

Parameters:
s - the message to log

warn

public void warn(java.lang.String s)
Logs a standard WARN message, using the active loggers

Parameters:
s - the message to log