public interface LoggerPluginInstance
Logger,
NullLoggerPluginInstance| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger()
Get the logger API instance associated with this plugin instance.
|
LoggerPlugin |
getLoggerPlugin() |
boolean |
isEnabled(Logger.Level level)
Determine whether logging is enabled for the given level.
|
void |
log(Logger.Level level,
String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Log a message at the given level using messageformat formatting.
|
void |
logf(Logger.Level level,
String loggerFqcn,
String format,
Object[] params,
Throwable t)
Log a message at the given level using printf formatting.
|
LoggerPlugin getLoggerPlugin()
Logger getLogger()
boolean isEnabled(Logger.Level level)
level - the levelfalse if logging is disabled, or true if logging is enabled or cannot be ascertainedvoid log(Logger.Level level, String loggerFqcn, Object message, Object[] params, Throwable t)
level - the levelloggerFqcn - the fully qualified class namemessage - the messageparams - the message parameters or null if nonet - the throwable cause or null if nonevoid logf(Logger.Level level, String loggerFqcn, String format, Object[] params, Throwable t)
level - the levelloggerFqcn - the fully qualified class nameformat - the message formatparams - the message parameters or null if nonet - the throwable cause or null if noneCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.