org.mmbase.util.logging
Class SimpleImpl

java.lang.Object
  extended byorg.mmbase.util.logging.AbstractSimpleImpl
      extended byorg.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.10 2003/03/12 20:02:03 michiel Exp $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.util.logging.AbstractSimpleImpl
level
 
Method Summary
static void configure(java.lang.String c)
          The configure method of this Logger implemenation.
static SimpleImpl getLoggerInstance(java.lang.String name)
           
protected  void log(java.lang.String s)
           
 
Methods inherited from class org.mmbase.util.logging.AbstractSimpleImpl
debug, error, fatal, info, isDebugEnabled, isServiceEnabled, log, service, setLevel, setPriority, trace, 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, error, fatal, info, isDebugEnabled, isServiceEnabled, service, setLevel, setPriority, trace, warn
 

Method Detail

getLoggerInstance

public static SimpleImpl getLoggerInstance(java.lang.String name)

configure

public static void configure(java.lang.String c)
The configure method of this Logger implemenation.


log

protected final void log(java.lang.String s)
Overrides:
log in class AbstractSimpleImpl


MMBase build 1.7.1.20041002