00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _LOG4TANGO_LOGGINGEVENT_H
00029 #define _LOG4TANGO_LOGGINGEVENT_H
00030
00031 #include <log4tango/Portability.hh>
00032 #include <string>
00033
00034 #include <log4tango/Level.hh>
00035 #include <log4tango/TimeStamp.hh>
00036
00037 namespace log4tango {
00038
00047
00048
00049
00050 struct LOG4TANGO_EXPORT LoggingEvent
00051 {
00052 public:
00063 #ifdef LOG4TANGO_HAS_NDC
00064 LoggingEvent(const std::string& logger,
00065 const std::string& message,
00066 const std::string& ndc,
00067 Level::Value level);
00068 #else
00069 LoggingEvent(const std::string& logger,
00070 const std::string& message,
00071 Level::Value level);
00072 #endif // LOG4TANGO_HAS_NDC
00073
00075 LoggingEvent(const LoggingEvent& event);
00076
00078 const std::string logger_name;
00079
00081 const std::string message;
00082
00083 #ifdef LOG4TANGO_HAS_NDC
00084
00085 const std::string ndc;
00086 #endif
00087
00089 Level::Value level;
00090
00092
00093
00095 long thread_id;
00096
00099 TimeStamp timestamp;
00100
00101 private:
00103 const LoggingEvent& operator= (const LoggingEvent&);
00104 };
00105
00106 }
00107
00108 #endif // _LOG4TANGO_LOGGINGEVENT_H
00109