org.teiid.logging
Class JavaLogger
java.lang.Object
org.teiid.logging.JavaLogger
- All Implemented Interfaces:
- Logger
public class JavaLogger
- extends java.lang.Object
- implements Logger
Write to Java logging
|
Method Summary |
java.util.logging.Level |
convertLevel(int level)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaLogger
public JavaLogger()
isEnabled
public boolean isEnabled(java.lang.String context,
int msgLevel)
- Description copied from interface:
Logger
- Is the logging for the given context at the specified message level enabled.
- Specified by:
isEnabled in interface Logger
- Returns:
log
public void log(int level,
java.lang.String context,
java.lang.Object msg)
- Specified by:
log in interface Logger
log
public void log(int level,
java.lang.String context,
java.lang.Throwable t,
java.lang.Object msg)
- Specified by:
log in interface Logger
convertLevel
public java.util.logging.Level convertLevel(int level)
shutdown
public void shutdown()
- Description copied from interface:
Logger
- 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 Logger
Copyright © 2011. All Rights Reserved.