JBoss Logging Log4j 2.2.0.CR1

org.jboss.logging.log4j
Class Log4jLoggerPluginInstance

java.lang.Object
  extended by org.jboss.logging.AbstractLoggerPluginInstance
      extended by 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

Constructor Summary
Log4jLoggerPluginInstance(String name, String resourceBundleName, org.jboss.logging.LoggerPlugin loggerPlugin)
           
 
Method Summary
 org.apache.log4j.Category getCategory()
           
 org.apache.log4j.Logger getDelegateLogger()
          Exposes the delegate Log4j Logger.
 boolean isEnabled(org.jboss.logging.Logger.Level level)
           
protected  void log(org.jboss.logging.Logger.Level level, String loggerFqcn, String message, Throwable t)
           
 
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
 

Constructor Detail

Log4jLoggerPluginInstance

public Log4jLoggerPluginInstance(String name,
                                 String resourceBundleName,
                                 org.jboss.logging.LoggerPlugin loggerPlugin)
Method Detail

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

JBoss Logging Log4j 2.2.0.CR1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.