org.mmbase.util.logging
Class WriterLogger
java.lang.Object
org.mmbase.util.logging.AbstractSimpleImpl
org.mmbase.util.logging.WriterLogger
- All Implemented Interfaces:
- Logger
- public class WriterLogger
- extends AbstractSimpleImpl
A Logger which writes everything logged to it to a given Writer. The Writer can e.g. be a StringWriter if you want to create one String.
- Since:
- MMBase-1.8
- Version:
- $Id: WriterLogger.java,v 1.3 2005/09/12 23:23:47 michiel Exp $
- Author:
- Michiel Meeuwissen
|
Method Summary |
protected void |
log(String s,
Level level)
Logs a message for a certain string. |
| Methods inherited from class org.mmbase.util.logging.AbstractSimpleImpl |
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isServiceEnabled, isTraceEnabled, log, log, log, log, service, service, setLevel, trace, trace, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriterLogger
public WriterLogger(Writer w)
WriterLogger
public WriterLogger(Writer w,
Level l)
log
protected final void log(String s,
Level level)
- Description copied from class:
AbstractSimpleImpl
- Logs a message for a certain string. Default calls
AbstractSimpleImpl.log(String) where the string is
prefixed with the level. Override this one if you want it differently.
- Overrides:
log in class AbstractSimpleImpl
MMBase build 1.8.1.20060716