JBoss Log Manager: Log4j Emulation 1.0.0.GA

org.jboss.logmanager.log4j
Class ConvertedLoggingEvent

java.lang.Object
  extended by org.apache.log4j.spi.LoggingEvent
      extended by org.jboss.logmanager.log4j.ConvertedLoggingEvent
All Implemented Interfaces:
Serializable

public final class ConvertedLoggingEvent
extends org.apache.log4j.spi.LoggingEvent

A log4j logging event which was converted from a JBoss LogManager ExtLogRecord.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.log4j.spi.LoggingEvent
categoryName, fqnOfCategoryClass, level, timeStamp
 
Constructor Summary
ConvertedLoggingEvent(org.jboss.logmanager.ExtLogRecord rec)
          Construct a new instance.
 
Method Summary
static org.jboss.logmanager.ExtLogRecord getLogRecordFor(org.apache.log4j.spi.LoggingEvent event)
          Get a log record for a log4j event.
 
Methods inherited from class org.apache.log4j.spi.LoggingEvent
getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, locationInformationExists, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertedLoggingEvent

public ConvertedLoggingEvent(org.jboss.logmanager.ExtLogRecord rec)
Construct a new instance.

Parameters:
rec - the log record
Method Detail

getLogRecordFor

public static org.jboss.logmanager.ExtLogRecord getLogRecordFor(org.apache.log4j.spi.LoggingEvent event)
Get a log record for a log4j event. If the event wraps a log record, that record is returned; otherwise a new record is built up from the event.

Parameters:
event - the event
Returns:
the log record

JBoss Log Manager: Log4j Emulation 1.0.0.GA

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