org.jboss.logging.log4j
Class Log4jLoggerPluginInstance
java.lang.Object
org.jboss.logging.AbstractLoggerPluginInstance
org.jboss.logging.log4j.Log4jLoggerPluginInstance
- All Implemented Interfaces:
- org.jboss.logging.LoggerPluginInstance
public class Log4jLoggerPluginInstance
- extends org.jboss.logging.AbstractLoggerPluginInstance
- implements org.jboss.logging.LoggerPluginInstance
Delegate for org.jboss.logging.Logger logging to log4j. Body of implementation
mainly copied from old Logger implementation.
- Version:
- $Revision: 3404 $
- Author:
- Sacha Labourey., Jason T. Greene
- See Also:
Logger
,
LoggerPlugin
Methods inherited from class org.jboss.logging.AbstractLoggerPluginInstance |
getLogger, getLoggerPlugin, log, logf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.logging.LoggerPluginInstance |
getLogger, getLoggerPlugin, log, logf |
Log4jLoggerPluginInstance
public Log4jLoggerPluginInstance(String name,
String resourceBundleName,
org.jboss.logging.LoggerPlugin loggerPlugin)
getCategory
public org.apache.log4j.Category getCategory()
getDelegateLogger
public org.apache.log4j.Logger getDelegateLogger()
- Exposes the delegate Log4j Logger.
- Returns:
- the underlying logger
isEnabled
public boolean isEnabled(org.jboss.logging.Logger.Level level)
- Specified by:
isEnabled
in interface org.jboss.logging.LoggerPluginInstance
log
protected void log(org.jboss.logging.Logger.Level level,
String loggerFqcn,
String message,
Throwable t)
- Overrides:
log
in class org.jboss.logging.AbstractLoggerPluginInstance
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.