ch.elca.el4j.util.socketstatistics.genericlogger
Class CommonsLoggingLogger

java.lang.Object
  extended by ch.elca.el4j.util.socketstatistics.genericlogger.GenericLogger
      extended by ch.elca.el4j.util.socketstatistics.genericlogger.CommonsLoggingLogger

public class CommonsLoggingLogger
extends GenericLogger

The facade to the Apache Commons Logging logger.

Author:
Jonas Hauenstein (JHN)
File-location:
CommonsLoggingLogger
Last check-in date:
2010-01-15 14:26:34 +0100 (Fr, 15. Jan 2010) by jonasha for revision 4093

Field Summary
 
Fields inherited from class ch.elca.el4j.util.socketstatistics.genericlogger.GenericLogger
m_logLevels, m_orgLogger
 
Constructor Summary
CommonsLoggingLogger(Object originallogger)
          Constructor.
 
Method Summary
 void log(String level, String msg)
          Log a message under the specified log level.
 
Methods inherited from class ch.elca.el4j.util.socketstatistics.genericlogger.GenericLogger
checkForLevel, isLogEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsLoggingLogger

public CommonsLoggingLogger(Object originallogger)
Constructor. This GenericLogger is using the Apache Commons Logging Logger for logging.

Parameters:
originallogger - Reference to the actually used logger for reflective calls
Method Detail

log

public void log(String level,
                String msg)
Log a message under the specified log level. The level can be: - debug - error - info - trace - warn

Specified by:
log in class GenericLogger
Parameters:
level - The log level of the message
msg - The log message


Copyright © 2005-2011 ELCA. All Rights Reserved.