org.mmbase.util.logging
Class ExceptionImpl
java.lang.Object
org.mmbase.util.logging.AbstractSimpleImpl
org.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
- Version:
- $Id: ExceptionImpl.java,v 1.6 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 |
exceptionLevel
protected static int exceptionLevel
staticLevel
protected static Level staticLevel
getLoggerInstance
public static ExceptionImpl 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,
Level l)
- 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