org.mmbase.util.logging
Class SimpleImpl
java.lang.Object
org.mmbase.util.logging.AbstractSimpleImpl
org.mmbase.util.logging.SimpleImpl
- All Implemented Interfaces:
- Logger
- public class SimpleImpl
- extends AbstractSimpleImpl
- implements Logger
A very simple implementation of Logger. It writes everything to
standard output or standard error (the configure string can contain
`stderr' or `stdout' (default)). It does not know categories (and
therefore is a Singleton class). It is possible to configure what
should be logged as well (with a level-string token in the
configure string).
- Since:
- MMBase-1.4
- Version:
- $Id: SimpleImpl.java,v 1.12 2005/10/02 16:42:15 michiel Exp $
- Author:
- Michiel Meeuwissen
| 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 |
| Methods inherited from interface org.mmbase.util.logging.Logger |
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isServiceEnabled, isTraceEnabled, service, service, setLevel, trace, trace, warn, warn |
getLoggerInstance
public static SimpleImpl getLoggerInstance(String name)
configure
public static void configure(String c)
- The configure method of this Logger implemenation.
- Parameters:
c - A string, which can contain the output (stdout or
stderr) and the priority (e.g. 'info')
log
protected final void log(String s)
- Description copied from class:
AbstractSimpleImpl
- How to write one string. Only to be called by
AbstractSimpleImpl.log(String, Level). Default this does
nothing, you must override this, or AbstractSimpleImpl.log(String, Level).
- Overrides:
log in class AbstractSimpleImpl
MMBase build 1.8.1.20060716