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 PaxLoggingEvent
public PaxLevel getLevel()
level
field.getLevel
in interface PaxLoggingEvent
public String getLoggerName()
categoryName
field.getLoggerName
in interface PaxLoggingEvent
public String getMessage()
getMessage
in interface PaxLoggingEvent
public String getRenderedMessage()
getRenderedMessage
in interface PaxLoggingEvent
public String getThreadName()
getThreadName
in interface PaxLoggingEvent
public String[] getThrowableStrRep()
getThrowableStrRep
in interface PaxLoggingEvent
public final boolean locationInformationExists()
locationInformationExists
in interface PaxLoggingEvent
public final long getTimeStamp()
getTimeStamp
in interface PaxLoggingEvent
public String getFQNOfLoggerClass()
getFQNOfLoggerClass
in interface PaxLoggingEvent
public Map getProperties()
getProperties
in interface PaxLoggingEvent
Copyright © 2019. All rights reserved.