logahawk
Class FilterLogger

java.lang.Object
  extended by logahawk.AbstractLogger
      extended by logahawk.ProxyLogger
          extended by logahawk.FilterLogger
All Implemented Interfaces:
Logger
Direct Known Subclasses:
SeverityFilterLogger

public class FilterLogger
extends ProxyLogger

A generic filtering Logger. All filtering decisions are handled by FilterLogger.Filter.


Nested Class Summary
static interface FilterLogger.Filter
          Accepts or rejects the provided log statement.
 
Field Summary
 
Fields inherited from class logahawk.ProxyLogger
logger
 
Fields inherited from interface logahawk.Logger
LINE_SEPARATOR
 
Constructor Summary
FilterLogger(Logger logger, FilterLogger.Filter filter)
           
 
Method Summary
 void log(Severity severity, Object... data)
          Logs message with a provide Severity.
 
Methods inherited from class logahawk.AbstractLogger
alert, debug, error, fatal, info, panic, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterLogger

public FilterLogger(Logger logger,
                    FilterLogger.Filter filter)
Method Detail

log

public void log(Severity severity,
                Object... data)
Description copied from interface: Logger
Logs message with a provide Severity. Useful for dynamically determined Severity messages.

Specified by:
log in interface Logger
Specified by:
log in class AbstractLogger