com.agilejava.blammo
Class StdErrLoggingKitAdapter

java.lang.Object
  extended by com.agilejava.blammo.StdErrLoggingKitAdapter
All Implemented Interfaces:
LoggingKitAdapter

public class StdErrLoggingKitAdapter
extends java.lang.Object
implements LoggingKitAdapter

An implementation of the LoggingKitAdapter interface, logging all messages to standard err.

Author:
Wilfred Springer

Field Summary
 
Fields inherited from interface com.agilejava.blammo.LoggingKitAdapter
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
StdErrLoggingKitAdapter()
           
 
Method Summary
 void log(java.lang.String level, MessageProducer producer)
          Logs a message, passing in the log level and the message.
 void log(java.lang.String level, MessageProducer producer, java.lang.Throwable throwable)
          Logs the message, passing in the log level, the message and the Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdErrLoggingKitAdapter

public StdErrLoggingKitAdapter()
Method Detail

log

public void log(java.lang.String level,
                MessageProducer producer)
Description copied from interface: LoggingKitAdapter
Logs a message, passing in the log level and the message.

Specified by:
log in interface LoggingKitAdapter
Parameters:
level - The log level. (Either LoggingKitAdapter.LEVEL_DEBUG, LoggingKitAdapter.LEVEL_ERROR, LoggingKitAdapter.LEVEL_INFO or LoggingKitAdapter.LEVEL_WARN).
producer - The MessageProducer producing the message.

log

public void log(java.lang.String level,
                MessageProducer producer,
                java.lang.Throwable throwable)
Description copied from interface: LoggingKitAdapter
Logs the message, passing in the log level, the message and the Throwable.

Specified by:
log in interface LoggingKitAdapter
Parameters:
level - The log level. (Either LoggingKitAdapter.LEVEL_DEBUG, LoggingKitAdapter.LEVEL_ERROR, LoggingKitAdapter.LEVEL_INFO or LoggingKitAdapter.LEVEL_WARN).
throwable - The associated exception.


Copyright © 2008. All Rights Reserved.