org.mmbase.util.logging
Class ExceptionImpl

java.lang.Object
  extended byorg.mmbase.util.logging.AbstractSimpleImpl
      extended byorg.mmbase.util.logging.ExceptionImpl
All Implemented Interfaces:
Logger

public class ExceptionImpl
extends AbstractSimpleImpl
implements Logger

A very simple implementation of Logger. It ignores everything below warn (or what else if configured), and throws an exception for everything higher. In junit tests this generates test-case failures if a warn or error is issued (we don't want that in normal situations). Logging can be set up like this in the setup of your test:

  Logging.configure(System.getProperty("mmbase.config") + File.separator + "log" + File.separator + "log.xml");
   

Since:
MMBase-1.7
Author:
Michiel Meeuwissen

Field Summary
protected static int exceptionLevel
           
 
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 ExceptionImpl getLoggerInstance(java.lang.String name)
           
protected  void log(java.lang.String s, Level l)
           
 
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
 

Field Detail

exceptionLevel

protected static int exceptionLevel
Method Detail

getLoggerInstance

public static ExceptionImpl 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,
                         Level l)
Overrides:
log in class AbstractSimpleImpl


MMBase build 1.7.1.20041002