public class PaxLoggingEventImpl extends Object implements Serializable, org.ops4j.pax.logging.spi.PaxLoggingEvent
The internal representation of logging events. When an affirmative
decision is made to log then a 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.
Log4J1 delegated PaxLoggingEvent
. It's the easiest implementation, because PaxLoggingEvent
was inspired by Log4J1 itself.
Constructor and Description |
---|
PaxLoggingEventImpl(org.apache.log4j.spi.LoggingEvent event) |
Modifier and Type | Method and Description |
---|---|
String |
getFQNOfLoggerClass() |
org.ops4j.pax.logging.spi.PaxLevel |
getLevel() |
org.ops4j.pax.logging.spi.PaxLocationInfo |
getLocationInformation() |
String |
getLoggerName() |
String |
getMessage() |
Map<String,Object> |
getProperties() |
String |
getRenderedMessage() |
String |
getThreadName() |
String[] |
getThrowableStrRep() |
long |
getTimeStamp() |
boolean |
locationInformationExists() |
public PaxLoggingEventImpl(org.apache.log4j.spi.LoggingEvent event)
public org.ops4j.pax.logging.spi.PaxLocationInfo getLocationInformation()
getLocationInformation
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public org.ops4j.pax.logging.spi.PaxLevel getLevel()
getLevel
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public String getLoggerName()
getLoggerName
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public String getMessage()
getMessage
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public String getRenderedMessage()
getRenderedMessage
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public String getThreadName()
getThreadName
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public String[] getThrowableStrRep()
getThrowableStrRep
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public final boolean locationInformationExists()
locationInformationExists
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public final long getTimeStamp()
getTimeStamp
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
public String getFQNOfLoggerClass()
getFQNOfLoggerClass
in interface org.ops4j.pax.logging.spi.PaxLoggingEvent
Copyright © 2006–2020 OPS4J - Open Participation Software for Java. All rights reserved.