org.jscience.ml.cml.logger
Class JumboLogger

java.lang.Object
  extended by java.util.logging.Logger
      extended by org.jscience.ml.cml.logger.JumboLogger

public class JumboLogger
extends java.util.logging.Logger

logger for JUMBO/CML. allows for XML-absed logging


Field Summary
 
Fields inherited from class java.util.logging.Logger
global, GLOBAL_LOGGER_NAME
 
Constructor Summary
protected JumboLogger(java.lang.String s)
           
 
Method Summary
 void close()
          closes handlers.
static java.util.logging.Logger getLogger(java.lang.String s)
          returns a singleton JumboLogger.
 void log(java.util.logging.LogRecord record)
          intercept log.
 void logThrowable(java.util.logging.Level level, java.lang.Throwable t)
          Write Exception to a Logger.
 void logXML(java.util.logging.Level level, AbstractBase base)
          Write XML to a Logger.
 
Methods inherited from class java.util.logging.Logger
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JumboLogger

protected JumboLogger(java.lang.String s)
Method Detail

getLogger

public static java.util.logging.Logger getLogger(java.lang.String s)
returns a singleton JumboLogger.

Parameters:
s - see Logger for use
Returns:
the logger (should be cast to JumboLogger)

log

public void log(java.util.logging.LogRecord record)
intercept log.

Overrides:
log in class java.util.logging.Logger
Parameters:
record - as in Logger

close

public void close()
closes handlers. Seems to be required explicitly.


logXML

public void logXML(java.util.logging.Level level,
                   AbstractBase base)
Write XML to a Logger.

This method writes a Node as an XML string to a logger

Parameters:
level - The Level for the logger to log at
base - The Object to log in XML

logThrowable

public void logThrowable(java.util.logging.Level level,
                         java.lang.Throwable t)
Write Exception to a Logger.

This method writes an Execption to a logger

Parameters:
level - The Level for the logger to log at
t - The Throwable Object to log