com.metamatrix.core.log
Class JavaLogWriter

java.lang.Object
  extended by com.metamatrix.core.log.JavaLogWriter
All Implemented Interfaces:
LogListener

public class JavaLogWriter
extends java.lang.Object
implements LogListener

Write to Java logging


Constructor Summary
JavaLogWriter()
           
 
Method Summary
 java.util.logging.Level convertLevel(int level)
           
 void log(int level, java.lang.String context, java.lang.Object msg)
           
 void log(int level, java.lang.String context, java.lang.Throwable t, java.lang.Object msg)
           
 void shutdown()
          Shut down this listener, requesting it clean up and release any resources it may have acquired during its use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLogWriter

public JavaLogWriter()
Method Detail

log

public void log(int level,
                java.lang.String context,
                java.lang.Object msg)
Specified by:
log in interface LogListener

log

public void log(int level,
                java.lang.String context,
                java.lang.Throwable t,
                java.lang.Object msg)
Specified by:
log in interface LogListener

convertLevel

public java.util.logging.Level convertLevel(int level)

shutdown

public void shutdown()
Description copied from interface: LogListener
Shut down this listener, requesting it clean up and release any resources it may have acquired during its use. The listener is free to ignore this request if it is not responsible for managing the resources it uses or if there are no resources.

Specified by:
shutdown in interface LogListener


Copyright © 2009. All Rights Reserved.