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.PaxLoggingEventpublic org.ops4j.pax.logging.spi.PaxLevel getLevel()
getLevel in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic String getLoggerName()
getLoggerName in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic String getMessage()
getMessage in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic String getRenderedMessage()
getRenderedMessage in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic String getThreadName()
getThreadName in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic String[] getThrowableStrRep()
getThrowableStrRep in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic final boolean locationInformationExists()
locationInformationExists in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic final long getTimeStamp()
getTimeStamp in interface org.ops4j.pax.logging.spi.PaxLoggingEventpublic String getFQNOfLoggerClass()
getFQNOfLoggerClass in interface org.ops4j.pax.logging.spi.PaxLoggingEventCopyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.