public abstract class AbstractLoggerPluginInstance extends Object implements LoggerPluginInstance
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoggerPluginInstance(String name,
String resourceBundleName,
LoggerPlugin loggerPlugin)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger()
Get the logger API instance associated with this plugin instance.
|
LoggerPlugin |
getLoggerPlugin() |
void |
log(Logger.Level level,
String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Log a message at the given level using messageformat formatting.
|
protected void |
log(Logger.Level level,
String loggerFqcn,
String message,
Throwable t)
Simple log method.
|
void |
logf(Logger.Level level,
String loggerFqcn,
String format,
Object[] params,
Throwable t)
Log a message at the given level using printf formatting.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEnabledprotected AbstractLoggerPluginInstance(String name, String resourceBundleName, LoggerPlugin loggerPlugin)
name - the logger nameresourceBundleName - the resource bundle nameloggerPlugin - public LoggerPlugin getLoggerPlugin()
getLoggerPlugin in interface LoggerPluginInstancepublic Logger getLogger()
getLogger in interface LoggerPluginInstancepublic void logf(Logger.Level level, String loggerFqcn, String format, Object[] params, Throwable t)
logf in interface LoggerPluginInstancelevel - 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 LoggerPluginInstancelevel - the levelloggerFqcn - the fully qualified class namemessage - the messageparams - the message parameters or null if nonet - the throwable cause or null if noneprotected void log(Logger.Level level, String loggerFqcn, String message, Throwable t)
level - the levelloggerFqcn - the logger class namemessage - the log messaget - the throwable causeCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.