org.mmbase.streams.transcoders
Class ErrorDetector

java.lang.Object
  extended by org.mmbase.util.logging.AbstractSimpleImpl
      extended by org.mmbase.streams.transcoders.ErrorDetector
All Implemented Interfaces:
Serializable, Logger

public class ErrorDetector
extends AbstractSimpleImpl
implements Serializable

Reads log and watches for error patterns.

Version:
$Id: ErrorDetector.java 39936 2009-11-25 14:05:18Z andre $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Pattern error
           
static Logger LOG
           
 
Fields inherited from class org.mmbase.util.logging.AbstractSimpleImpl
level
 
Constructor Summary
ErrorDetector(Pattern p)
           
 
Method Summary
protected  void log(String s, Level level)
          Logs a message for a certain string.
 
Methods inherited from class org.mmbase.util.logging.AbstractSimpleImpl
debug, debug, error, error, fatal, fatal, getMDC, info, info, isDebugEnabled, isEnabledFor, isServiceEnabled, isTraceEnabled, 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
 

Field Detail

LOG

public static final Logger LOG

error

protected Pattern error
Constructor Detail

ErrorDetector

public ErrorDetector(Pattern p)
Method Detail

log

protected void log(String s,
                   Level level)
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 2.0-SNAPSHOT - null