log4j-jboss-logmanager 1.0.2.Final-redhat-1

org.apache.log4j.spi
Class LoggingEvent

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

public class LoggingEvent
extends Object
implements Serializable

Our LoggingEvent class which is designed to look and act just like log4j's, but which maintains an internal ExtLogRecord instance.

See Also:
Serialized Form

Field Summary
 String categoryName
           
 String fqnOfCategoryClass
           
 org.apache.log4j.Priority level
           
 long timeStamp
           
 
Constructor Summary
LoggingEvent(org.jboss.logmanager.ExtLogRecord logRecord, Category logger)
           
LoggingEvent(String fqnOfCategoryClass, Category logger, long timeStamp, org.apache.log4j.Level level, Object message, String threadName, org.apache.log4j.spi.ThrowableInformation throwable, String ndc, org.apache.log4j.spi.LocationInfo info, Map properties)
           
LoggingEvent(String fqnOfCategoryClass, Category logger, long timeStamp, org.apache.log4j.Priority level, Object message, Throwable throwable)
           
LoggingEvent(String fqnOfCategoryClass, Category logger, org.apache.log4j.Priority level, Object message, Throwable throwable)
           
 
Method Summary
 String getFQNOfLoggerClass()
           
 org.apache.log4j.Level getLevel()
           
 org.apache.log4j.spi.LocationInfo getLocationInformation()
           
 Category getLogger()
           
 String getLoggerName()
           
 org.jboss.logmanager.ExtLogRecord getLogRecord()
           
 Object getMDC(String key)
           
 void getMDCCopy()
           
 Object getMessage()
           
 String getNDC()
           
 Map getProperties()
           
 String getProperty(String key)
           
 Set getPropertyKeySet()
           
 String getRenderedMessage()
           
static long getStartTime()
           
 String getThreadName()
           
 org.apache.log4j.spi.ThrowableInformation getThrowableInformation()
           
 String[] getThrowableStrRep()
           
 long getTimeStamp()
           
 boolean locationInformationExists()
           
 Object removeProperty(String propName)
           
 void setProperty(String propName, String propValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoryName

public final String categoryName

timeStamp

public final long timeStamp

fqnOfCategoryClass

public final transient String fqnOfCategoryClass

level

public transient org.apache.log4j.Priority level
Constructor Detail

LoggingEvent

public LoggingEvent(String fqnOfCategoryClass,
                    Category logger,
                    org.apache.log4j.Priority level,
                    Object message,
                    Throwable throwable)

LoggingEvent

public LoggingEvent(String fqnOfCategoryClass,
                    Category logger,
                    long timeStamp,
                    org.apache.log4j.Priority level,
                    Object message,
                    Throwable throwable)

LoggingEvent

public LoggingEvent(String fqnOfCategoryClass,
                    Category logger,
                    long timeStamp,
                    org.apache.log4j.Level level,
                    Object message,
                    String threadName,
                    org.apache.log4j.spi.ThrowableInformation throwable,
                    String ndc,
                    org.apache.log4j.spi.LocationInfo info,
                    Map properties)

LoggingEvent

public LoggingEvent(org.jboss.logmanager.ExtLogRecord logRecord,
                    Category logger)
Method Detail

getLocationInformation

public org.apache.log4j.spi.LocationInfo getLocationInformation()

getLevel

public org.apache.log4j.Level getLevel()

getLoggerName

public String getLoggerName()

getLogger

public Category getLogger()

getMessage

public Object getMessage()

getNDC

public String getNDC()

getMDC

public Object getMDC(String key)

getMDCCopy

public void getMDCCopy()

getRenderedMessage

public String getRenderedMessage()

getStartTime

public static long getStartTime()

getThreadName

public String getThreadName()

getThrowableInformation

public org.apache.log4j.spi.ThrowableInformation getThrowableInformation()

getThrowableStrRep

public String[] getThrowableStrRep()

setProperty

public final void setProperty(String propName,
                              String propValue)

getProperty

public final String getProperty(String key)

locationInformationExists

public final boolean locationInformationExists()

getTimeStamp

public final long getTimeStamp()

getPropertyKeySet

public Set getPropertyKeySet()

getProperties

public Map getProperties()

getFQNOfLoggerClass

public String getFQNOfLoggerClass()

removeProperty

public Object removeProperty(String propName)

getLogRecord

public org.jboss.logmanager.ExtLogRecord getLogRecord()

log4j-jboss-logmanager 1.0.2.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.