logahawk
Class MultiLogger

java.lang.Object
  extended by logahawk.MultiLogger
All Implemented Interfaces:
Logger

@ThreadSafe
public class MultiLogger
extends Object
implements Logger

A Logger implementation that forwards all logging messages to other Logger instances. This class is intended to be used in situations where you have Loggers with different formatters. For example, one Logger might be intended to be viewed by non-technical users and so it removes any Exception arguments, while another Logger keeps the Exceptions and writes them to the log file for use by developers.


Field Summary
 
Fields inherited from interface logahawk.Logger
LINE_SEPARATOR
 
Constructor Summary
MultiLogger()
           
 
Method Summary
 void alert(Object... data)
           
 void debug(Object... data)
           
 void error(Object... data)
           
 void fatal(Object... data)
           
 List<Logger> getLoggers()
           
 void info(Object... data)
           
 void log(Severity severity, Object... data)
           
 void panic(Object... data)
           
 void warn(Object... data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiLogger

public MultiLogger()
Method Detail

alert

public void alert(Object... data)
Specified by:
alert in interface Logger

debug

public void debug(Object... data)
Specified by:
debug in interface Logger

error

public void error(Object... data)
Specified by:
error in interface Logger

fatal

public void fatal(Object... data)
Specified by:
fatal in interface Logger

info

public void info(Object... data)
Specified by:
info in interface Logger

log

public void log(Severity severity,
                Object... data)
Specified by:
log in interface Logger

panic

public void panic(Object... data)
Specified by:
panic in interface Logger

warn

public void warn(Object... data)
Specified by:
warn in interface Logger

getLoggers

public List<Logger> getLoggers()