public class NullLoggerPluginInstance extends AbstractLoggerPluginInstance
Logger,
LoggerPluginInstance| Constructor and Description |
|---|
NullLoggerPluginInstance(String name,
LoggerPlugin loggerPlugin)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getLogger, getLoggerPlugin, logpublic NullLoggerPluginInstance(String name, LoggerPlugin loggerPlugin)
name - the logger name to useloggerPlugin - public boolean isEnabled(Logger.Level level)
level - the levelfalse if logging is disabled, or true if logging is enabled or cannot be ascertainedpublic void logf(Logger.Level level, String loggerFqcn, String format, Object[] params, Throwable t)
logf in interface LoggerPluginInstancelogf in class AbstractLoggerPluginInstancelevel - the levelloggerFqcn - the fully qualified class nameformat - the message formatparams - the message parameters or null if nonet - the throwable cause or null if nonepublic void log(Logger.Level level, String loggerFqcn, Object message, Object[] params, Throwable t)
log in interface LoggerPluginInstancelog in class AbstractLoggerPluginInstancelevel - the levelloggerFqcn - the fully qualified class namemessage - the messageparams - 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.