Package org.apache.log4j.spi
Class LoggingEvent
- java.lang.Object
-
- 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 internalExtLogRecord
instance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
categoryName
String
fqnOfCategoryClass
org.apache.log4j.Priority
level
long
timeStamp
-
Constructor Summary
Constructors Constructor Description 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)
LoggingEvent(org.jboss.logmanager.ExtLogRecord logRecord, Category logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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()
-
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()
-
locationInformationExists
public final boolean locationInformationExists()
-
getTimeStamp
public final long getTimeStamp()
-
getPropertyKeySet
public Set getPropertyKeySet()
-
getProperties
public Map getProperties()
-
getFQNOfLoggerClass
public String getFQNOfLoggerClass()
-
getLogRecord
public org.jboss.logmanager.ExtLogRecord getLogRecord()
-
-