| java.lang.Object org.mmbase.util.logging.AbstractSimpleImpl org.mmbase.util.logging.ExceptionImpl
ExceptionImpl | public class ExceptionImpl extends AbstractSimpleImpl implements Logger(Code) | | 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");
author: Michiel Meeuwissen since: MMBase-1.7 version: $Id: ExceptionImpl.java,v 1.8 2007/03/02 21:05:15 nklasens Exp $ |
configure | public static void configure(String c)(Code) | | The configure method of this Logger implemenation.
Parameters: c - A string, which can contain the output (stdout orstderr) and the priority (e.g. 'info') |
Fields inherited from org.mmbase.util.logging.AbstractSimpleImpl | protected int level(Code)(Java Doc)
|
Methods inherited from org.mmbase.util.logging.AbstractSimpleImpl | public void debug(Object m)(Code)(Java Doc) public void debug(Object m, Throwable t)(Code)(Java Doc) public void error(Object m)(Code)(Java Doc) public void error(Object m, Throwable t)(Code)(Java Doc) public void fatal(Object m)(Code)(Java Doc) public void fatal(Object m, Throwable t)(Code)(Java Doc) public void info(Object m)(Code)(Java Doc) public void info(Object m, Throwable t)(Code)(Java Doc) public boolean isDebugEnabled()(Code)(Java Doc) public boolean isServiceEnabled()(Code)(Java Doc) public boolean isTraceEnabled()(Code)(Java Doc) protected void log(String s)(Code)(Java Doc) protected void log(String s, Level level)(Code)(Java Doc) protected void log(Object s, Level level)(Code)(Java Doc) protected void log(Object s, Throwable t)(Code)(Java Doc) protected void log(Object s, Level level, Throwable t)(Code)(Java Doc) public void service(Object m)(Code)(Java Doc) public void service(Object m, Throwable t)(Code)(Java Doc) public void setLevel(Level p)(Code)(Java Doc) public void trace(Object m)(Code)(Java Doc) public void trace(Object m, Throwable t)(Code)(Java Doc) public void warn(Object m)(Code)(Java Doc) public void warn(Object m, Throwable t)(Code)(Java Doc)
|
|
|