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 ) 28 #include <log4cxx/helpers/objectptr.h> 29 #include <log4cxx/logstring.h> 31 #include <log4cxx/logger.h> 32 #include <log4cxx/mdc.h> 33 #include <log4cxx/spi/location/locationinfo.h> 41 class ObjectOutputStream;
46 LOG4CXX_LIST_DEF(KeySet, LogString);
61 BEGIN_LOG4CXX_CAST_MAP()
63 END_LOG4CXX_CAST_MAP()
65 typedef spi::KeySet KeySet;
83 const LevelPtr& level,
const LogString& message,
115 static log4cxx_time_t getStartTime();
145 bool getNDC(LogString& dest)
const;
169 bool getMDC(
const LogString& key, LogString& dest)
const;
178 KeySet getMDCKeySet()
const;
184 void getMDCCopy()
const;
192 bool getProperty(
const LogString& key, LogString& dest)
const;
199 KeySet getPropertyKeySet()
const;
204 void setProperty(
const LogString& key,
const LogString& value);
216 mutable LogString* ndc;
224 std::map<LogString, LogString>* properties;
231 mutable bool ndcLookupRequired;
238 mutable bool mdcCopyLookupRequired;
246 log4cxx_time_t timeStamp;
255 const LogString threadName;
262 static const LogString getCurrentThreadName();
273 #if defined(_MSC_VER) 274 #pragma warning (pop) 278 #endif //_LOG4CXX_SPI_LOGGING_EVENT_H std::map< LogString, LogString > Map
String to string stl map.
Definition: mdc.h:46
const LevelPtr & getLevel() const
Return the level of this event.
Definition: loggingevent.h:89
The internal representation of logging events.
Definition: loggingevent.h:56
const LogString & getLoggerName() const
Return the name of the logger.
Definition: loggingevent.h:95
const LogString & getRenderedMessage() const
Return the message for this logging event.
Definition: loggingevent.h:107
log4cxx_time_t getTimeStamp() const
The number of microseconds elapsed from 01.01.1970 until logging event was created.
Definition: loggingevent.h:125
Implementation class for Object.
Definition: objectimpl.h:28
Emulates java serialization.
Definition: objectoutputstream.h:33
const LogString & getThreadName() const
Return the threadName of this event.
Definition: loggingevent.h:118
This class represents the location of a logging statement.
Definition: locationinfo.h:33
Definition: appender.h:33
const LogString & getMessage() const
Return the message for this logging event.
Definition: loggingevent.h:101