|
JBoss Logging Programming Interface 2.2.0.CR2-SNAPSHOT | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.logging.AbstractLoggerPluginInstance
org.jboss.logging.NullLoggerPluginInstance
public class NullLoggerPluginInstance
LoggerPlugin implementation producing no output at all. Used for client side logging when no log4j.jar is available on the classpath.
Logger
,
LoggerPluginInstance
Constructor Summary | |
---|---|
NullLoggerPluginInstance(String name,
LoggerPlugin loggerPlugin)
Construct a new instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jboss.logging.AbstractLoggerPluginInstance |
---|
getLogger, getLoggerPlugin, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullLoggerPluginInstance(String name, LoggerPlugin loggerPlugin)
name
- the logger name to useloggerPlugin
- Method Detail |
---|
public boolean isEnabled(Logger.Level level)
level
- the level
false
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 LoggerPluginInstance
logf
in class AbstractLoggerPluginInstance
level
- 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 LoggerPluginInstance
log
in class AbstractLoggerPluginInstance
level
- the levelloggerFqcn
- the fully qualified class namemessage
- the messageparams
- the message parameters or null
if nonet
- the throwable cause or null
if none
|
JBoss Logging Programming Interface 2.2.0.CR2-SNAPSHOT | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |