logahawk
Class MultiLogger
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiLogger
public MultiLogger()
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()