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 internal ExtLogRecord
instance.
- See Also:
- Serialized Form
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
categoryName
public final String categoryName
timeStamp
public final long timeStamp
fqnOfCategoryClass
public final transient String fqnOfCategoryClass
level
public transient org.apache.log4j.Priority level
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)
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()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.