18#ifndef _LOG4CXX_SPI_LOGGING_EVENT_H
19#define _LOG4CXX_SPI_LOGGING_EVENT_H
34class ObjectOutputStream;
199 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(LoggingEventPrivate, m_priv)
206 static const
LogString& getCurrentThreadName();
207 static const
LogString& getCurrentThreadUserName();
base class for java-like objects.
Definition object.h:106
This class represents the location of a logging statement.
Definition locationinfo.h:46
The internal representation of logging events.
Definition loggingevent.h:51
const LogString & getMessage() const
Return the message for this logging event.
const LevelPtr & getLevel() const
Return the level of this event.
std::chrono::time_point< std::chrono::system_clock > getChronoTimeStamp() const
log4cxx_time_t getTimeStamp() const
The number of microseconds elapsed from 01.01.1970 until logging event was created.
bool getMDC(const LogString &key, LogString &dest) const
Appends the the context corresponding to the key parameter.
bool getNDC(LogString &dest) const
This method appends the NDC for this event to passed string.
const LogString & getLoggerName() const
Return the name of the logger.
KeySet getPropertyKeySet() const
Returns the set of of the key values in the properties for the event.
void getMDCCopy() const
Obtain a copy of this thread's MDC prior to serialization or asynchronous logging.
void setProperty(const LogString &key, const LogString &value)
Set a string property using a key and a string value.
LoggingEvent()
For serialization only.
static log4cxx_time_t getStartTime()
Returns the time when the application started, in microseconds elapsed since 01.01....
spi::KeySet KeySet
Definition loggingevent.h:58
KeySet getMDCKeySet() const
Returns the set of of the key values in the MDC for the event.
bool getProperty(const LogString &key, LogString &dest) const
Return a previously set property.
const LogString & getRenderedMessage() const
Return the message for this logging event.
const LogString & getThreadName() const
Return the threadName of this event.
const LogString & getThreadUserName() const
Get the user name of the thread.
const log4cxx::spi::LocationInfo & getLocationInformation() const
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