org.teiid.logging
Interface Logger

All Known Implementing Classes:
JavaLogger, Log4jListener

public interface Logger

LogListener


Method Summary
 boolean isEnabled(java.lang.String context, int msgLevel)
          Is the logging for the given context at the specified message level enabled.
 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.
 

Method Detail

isEnabled

boolean isEnabled(java.lang.String context,
                  int msgLevel)
Is the logging for the given context at the specified message level enabled.

Parameters:
context -
msgLevel -
Returns:

log

void log(int level,
         java.lang.String context,
         java.lang.Object msg)

log

void log(int level,
         java.lang.String context,
         java.lang.Throwable t,
         java.lang.Object msg)

shutdown

void shutdown()
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.



Copyright © 2011. All Rights Reserved.