edu.stanford.nlp.util.logging
Class JavaUtilLoggingAdaptor.RedwoodHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by java.util.logging.ConsoleHandler
              extended by edu.stanford.nlp.util.logging.JavaUtilLoggingAdaptor.RedwoodHandler
Enclosing class:
JavaUtilLoggingAdaptor

public static class JavaUtilLoggingAdaptor.RedwoodHandler
extends java.util.logging.ConsoleHandler

This is the bridge class which actually adapts java.util.logging calls to Redwood calls.


Constructor Summary
JavaUtilLoggingAdaptor.RedwoodHandler()
           
 
Method Summary
 void close()
          This is a no-op since Redwood doesn't have this.
 void flush()
          This is a no-op since Redwood doesn't have this.
 void publish(java.util.logging.LogRecord record)
          Convert a java.util.logging call to its equivalent Redwood logging call.
 
Methods inherited from class java.util.logging.StreamHandler
isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaUtilLoggingAdaptor.RedwoodHandler

public JavaUtilLoggingAdaptor.RedwoodHandler()
Method Detail

close

public void close()
           throws java.lang.SecurityException
This is a no-op since Redwood doesn't have this.

Overrides:
close in class java.util.logging.ConsoleHandler
Throws:
java.lang.SecurityException

flush

public void flush()
This is a no-op since Redwood doesn't have this.

Overrides:
flush in class java.util.logging.StreamHandler

publish

public void publish(java.util.logging.LogRecord record)
Convert a java.util.logging call to its equivalent Redwood logging call. Currently, the WARNING log level becomes Redwood WARNING flag, the SEVERE log level becomes Redwood.ERR, and anything at FINE or lower becomes Redwood.DBG CONFIG and INFO don't map to a Redwood tag.

Overrides:
publish in class java.util.logging.ConsoleHandler


Stanford NLP Group