18#ifndef _LOG4CXX_SPI_LOGGING_EVENT_H
19#define _LOG4CXX_SPI_LOGGING_EVENT_H
161#if LOG4CXX_ABI_VERSION <= 15
165 [[ deprecated(
"Use LoadDC instead" ) ]]
199 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(LoggingEventPrivate, m_priv)
base class for java-like objects.
Definition object.h:106
This class represents the location of a logging statement.
Definition locationinfo.h:40
The data recorded for each logging request.
Definition loggingevent.h:47
const LogString & getMessage() const
The message provided in the logging request.
const LevelPtr & getLevel() const
The severity level of the logging request that generated this event.
const LocationInfo & getLocationInformation() const
The source code location where the logging request was made.
std::chrono::time_point< std::chrono::system_clock > getChronoTimeStamp() const
The value of the system clock at the time this logging event was created.
log4cxx_time_t getTimeStamp() const
The number of microseconds elapsed since 1970-01-01 at the time this logging event was created.
bool getMDC(const LogString &key, LogString &dest) const
Add the value associated with key to the end of dest.
bool getNDC(LogString &dest) const
Add the current nested diagnostic context to the end of dest.
const LogString & getLoggerName() const
The name of the logger used to make the logging request.
KeySet getPropertyKeySet() const
The set of of the key values in the properties for the event.
void getMDCCopy() const
Obtain a copy of the current thread's diagnostic context data.
void setProperty(const LogString &key, const LogString &value)
Associate value with the property key.
LoggingEvent()
An empty event.
static log4cxx_time_t getStartTime()
The number of microseconds elapsed since 1970-01-01 at the time the application started.
spi::KeySet KeySet
Definition loggingevent.h:54
KeySet getMDCKeySet() const
The keys in the mapped diagnostic context for the event.
bool getProperty(const LogString &key, LogString &dest) const
Append onto dest the value associated with the property key.
const LogString & getRenderedMessage() const
The message provided in the logging request.
const LogString & getThreadName() const
The identity of the thread in which this logging event was created.
void LoadDC() const
Obtain a copy of the current thread's diagnostic context data.
const LogString & getThreadUserName() const
The name you gave to the thread in which this logging event was created.
LOG4CXX_PTR_DEF(LoggerRepository)
LOG4CXX_LIST_DEF(HierarchyEventListenerList, HierarchyEventListenerPtr)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition appender.h:32
std::basic_string< logchar > LogString
Definition logstring.h:60
std::shared_ptr< Level > LevelPtr
Definition optionconverter.h:28
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:43
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146