public class LogEventAdapter extends LoggingEvent
| Constructor and Description | 
|---|
| LogEventAdapter(org.apache.logging.log4j.core.LogEvent event) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.logging.log4j.core.LogEvent | getEvent() | 
| Level | getLevel()Return the level of this event. | 
| LocationInfo | getLocationInformation()Set the location information for this logging event. | 
| Category | getLogger()Gets the logger of the event. | 
| String | getLoggerName()Return the name of the logger. | 
| Object | getMDC(String key) | 
| void | getMDCCopy()Obtain a copy of this thread's MDC prior to serialization or
 asynchronous logging. | 
| Object | getMessage()Return the message for this logging event. | 
| String | getNDC() | 
| Map | getProperties() | 
| String | getProperty(String key) | 
| Set | getPropertyKeySet() | 
| String | getRenderedMessage() | 
| static long | getStartTime()Returns the time when the application started, in milliseconds
 elapsed since 01.01.1970. | 
| String | getThreadName() | 
| ThrowableInformation | getThrowableInformation()Returns the throwable information contained within this
 event. | 
| String[] | getThrowableStrRep()Return this event's throwable's string[] representaion. | 
| long | getTimeStamp() | 
getFQNOfLoggerClass, removeProperty, setPropertypublic LogEventAdapter(org.apache.logging.log4j.core.LogEvent event)
public static long getStartTime()
public org.apache.logging.log4j.core.LogEvent getEvent()
public LocationInfo getLocationInformation()
getLocationInformation in class LoggingEventpublic Level getLevel()
level field.getLevel in class LoggingEventpublic String getLoggerName()
categoryName field.getLoggerName in class LoggingEventpublic long getTimeStamp()
getTimeStamp in class LoggingEventpublic Category getLogger()
getLogger in class LoggingEventpublic Object getMessage()
LoggingEventBefore serialization, the returned object is the message passed by the user to generate the logging event. After serialization, the returned value equals the String form of the message possibly after object rendering.
getMessage in class LoggingEventpublic String getNDC()
getNDC in class LoggingEventpublic Object getMDC(String key)
getMDC in class LoggingEventpublic void getMDCCopy()
getMDCCopy in class LoggingEventpublic String getRenderedMessage()
getRenderedMessage in class LoggingEventpublic String getThreadName()
getThreadName in class LoggingEventpublic ThrowableInformation getThrowableInformation()
null if there is no such information.
 Note that the Throwable object contained within a
 ThrowableInformation does not survive serialization.
getThrowableInformation in class LoggingEventpublic String[] getThrowableStrRep()
getThrowableStrRep in class LoggingEventpublic String getProperty(String key)
getProperty in class LoggingEventpublic Set getPropertyKeySet()
getPropertyKeySet in class LoggingEventpublic Map getProperties()
getProperties in class LoggingEventCopyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
             Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo,             and the Apache Log4j logo are trademarks of The Apache Software Foundation.