Package org.teiid.runtime
Class JBossLogger
- java.lang.Object
-
- org.teiid.runtime.JBossLogger
-
-
Constructor Summary
Constructors Constructor Description JBossLogger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.logging.Logger.Level
convert2JbossLevel(int level)
ConvertMessageLevel
toLogger.Level
static int
convert2MessageLevel(org.jboss.logging.Logger.Level level)
ConvertLogger.Level
toMessageLevel
boolean
isEnabled(String context, int level)
Is the logging for the given context at the specified message level enabled.void
log(int level, String context, Object... msg)
void
log(int level, String context, Throwable t, Object... msg)
void
putMdc(String key, String val)
void
removeMdc(String key)
void
shutdown()
Shut down this listener, requesting it clean up and release any resources it may have acquired during its use.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled(String context, int level)
Description copied from interface:Logger
Is the logging for the given context at the specified message level enabled.
-
convert2JbossLevel
public static org.jboss.logging.Logger.Level convert2JbossLevel(int level)
ConvertMessageLevel
toLogger.Level
- Parameters:
level
-- Returns:
-
convert2MessageLevel
public static int convert2MessageLevel(org.jboss.logging.Logger.Level level)
ConvertLogger.Level
toMessageLevel
- Parameters:
level
-- Returns:
-
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.
-
-