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 )
38 class ObjectOutputStream;
221 std::map<LogString, LogString>* properties;
228 mutable bool ndcLookupRequired;
235 mutable bool mdcCopyLookupRequired;
243 log4cxx_time_t timeStamp;
259 static const LogString getCurrentThreadName();
270 #if defined(_MSC_VER)
271 #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:34
The internal representation of logging events.
Definition: loggingevent.h:55
const LogString & getThreadName() const
Return the threadName of this event.
Definition: loggingevent.h:115
log4cxx_time_t getTimeStamp() const
The number of microseconds elapsed from 01.01.1970 until logging event was created.
Definition: loggingevent.h:122
const LogString & getMessage() const
Return the message for this logging event.
Definition: loggingevent.h:98
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.
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.
const log4cxx::spi::LocationInfo & getLocationInformation() const
Definition: loggingevent.h:128
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 & getLoggerName() const
Return the name of the logger.
Definition: loggingevent.h:92
LOG4CXX_PTR_DEF(LoggerRepository)
LOG4CXX_LIST_DEF(HierarchyEventListenerList, HierarchyEventListenerPtr)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
Definition: appender.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:66
std::shared_ptr< Level > LevelPtr
Definition: optionconverter.h:27
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136