public class PaxLoggingEventImpl extends Object implements Serializable, PaxLoggingEvent
LoggingEvent instance
is created. This instance is passed around to the different log4j
components.
This class is of concern to those wishing to extend log4j.
| Constructor and Description |
|---|
PaxLoggingEventImpl(org.apache.log4j.spi.LoggingEvent event) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFQNOfLoggerClass()
Get the fully qualified name of the calling logger sub-class/wrapper.
|
PaxLevel |
getLevel()
Return the level of this event.
|
PaxLocationInfo |
getLocationInformation()
Set the location information for this logging event.
|
String |
getLoggerName()
Return the name of the logger.
|
String |
getMessage()
Return the message for this logging event.
|
Map |
getProperties()
Returns the set of properties for the event.
|
String |
getRenderedMessage() |
String |
getThreadName() |
String[] |
getThrowableStrRep()
Return this event's throwable's string[] representaion.
|
long |
getTimeStamp()
Getter for the event's time stamp.
|
boolean |
locationInformationExists()
Check for the existence of location information without creating it
(a byproduct of calling getLocationInformation).
|
public PaxLoggingEventImpl(org.apache.log4j.spi.LoggingEvent event)
public PaxLocationInfo getLocationInformation()
getLocationInformation in interface PaxLoggingEventpublic PaxLevel getLevel()
level field.getLevel in interface PaxLoggingEventpublic String getLoggerName()
categoryName field.getLoggerName in interface PaxLoggingEventpublic String getMessage()
getMessage in interface PaxLoggingEventpublic String getRenderedMessage()
getRenderedMessage in interface PaxLoggingEventpublic String getThreadName()
getThreadName in interface PaxLoggingEventpublic String[] getThrowableStrRep()
getThrowableStrRep in interface PaxLoggingEventpublic final boolean locationInformationExists()
locationInformationExists in interface PaxLoggingEventpublic final long getTimeStamp()
getTimeStamp in interface PaxLoggingEventpublic String getFQNOfLoggerClass()
getFQNOfLoggerClass in interface PaxLoggingEventpublic Map getProperties()
getProperties in interface PaxLoggingEventCopyright © 2016. All rights reserved.