18#ifndef _LOG4CXX_SPI_LOGGING_EVENT_H
19#define _LOG4CXX_SPI_LOGGING_EVENT_H
22 #pragma warning (push)
23 #pragma warning ( disable: 4231 4251 4275 4786 )
38class ObjectOutputStream;
227 std::map<LogString, LogString>* properties;
234 mutable bool ndcLookupRequired;
241 mutable bool mdcCopyLookupRequired;
249 log4cxx_time_t timeStamp;
274 static const LogString getCurrentThreadName();
275 static const LogString getCurrentThreadUserName();
287 #pragma warning (pop)
std::map< LogString, LogString > Map
String to string stl map.
Definition: mdc.h:46
Emulates java serialization.
Definition: objectoutputstream.h:34
base class for java-like objects.
Definition: object.h:102
This class represents the location of a logging statement.
Definition: locationinfo.h:47
The internal representation of logging events.
Definition: loggingevent.h:55
const LogString & getMessage() const
Return the message for this logging event.
Definition: loggingevent.h:98
log4cxx_time_t getTimeStamp() const
The number of microseconds elapsed from 01.01.1970 until logging event was created.
Definition: loggingevent.h:128
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.
Definition: loggingevent.h:92
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.
static log4cxx_time_t getStartTime()
Returns the time when the application started, in microseconds elapsed since 01.01....
spi::KeySet KeySet
Definition: loggingevent.h:62
void write(helpers::ObjectOutputStream &os, helpers::Pool &p) const
Writes the content of the LoggingEvent in a format compatible with log4j's serialized form.
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.
Definition: loggingevent.h:104
const LogString & getThreadName() const
Return the threadName of this event.
Definition: loggingevent.h:115
const LogString & getThreadUserName() const
Get the user name of the thread.
const log4cxx::spi::LocationInfo & getLocationInformation() const
Definition: loggingevent.h:134
LOG4CXX_PTR_DEF(LoggerRepository)
LOG4CXX_LIST_DEF(HierarchyEventListenerList, HierarchyEventListenerPtr)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:38
Definition: messagehandler.h:23
std::basic_string< logchar > LogString
Definition: logstring.h:66
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:28
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141