Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cLogEvent.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cLogEvent_H
7 #define _INC_cLogEvent_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cLogAppender.h"
13 #include "cTimeInt.h"
14 
15 namespace Gray
16 {
18  {
21 
22  public:
23  const char* m_pszSubject;
27 
28  public:
29  cLogEvent(LOG_ATTR_MASK_t uAttrMask = LOG_ATTR_0, LOGLEV_TYPE eLogLevel = LOGLEV_ANY, cStringL sMsg = "", cStringL sContext = "")
30  : cLogEventParams(uAttrMask, eLogLevel)
31  , m_pszSubject(nullptr)
32  , m_sContext(sContext)
33  , m_sMsg(sMsg)
34  , m_time(0)
35  {
36  }
38  {
39  }
40 
42  cStringL get_FormattedDefault() const;
43  };
44 
46 }
47 
48 #endif
#define GRAYCORE_LINK
Definition: GrayCore.h:47
Definition: cLogAppender.h:72
Definition: cLogEvent.h:18
~cLogEvent()
Definition: cLogEvent.h:37
cStringL m_sMsg
message text
Definition: cLogEvent.h:25
const char * m_pszSubject
general subject matter tag.
Definition: cLogEvent.h:23
cLogEvent(LOG_ATTR_MASK_t uAttrMask=LOG_ATTR_0, LOGLEV_TYPE eLogLevel=LOGLEV_ANY, cStringL sMsg="", cStringL sContext="")
Definition: cLogEvent.h:29
TIMESEC_t m_time
cTimeInt. when did this happen? maybe not set until needed. ! isTimeValid()
Definition: cLogEvent.h:26
cStringL m_sContext
extra context info. format ? e.g. What script/class/etc name is this event from?
Definition: cLogEvent.h:24
Definition: cRefPtr.h:22
Definition: cRefPtr.h:225
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
@ LOG_ATTR_0
Definition: cLogAppender.h:31
cRefPtr< cLogEvent > cLogEventPtr
Definition: cLogEvent.h:45
LOGLEV_TYPE
Definition: cLogLevel.h:22
UINT32 LOG_ATTR_MASK_t
Definition: cLogAppender.h:56
time_t TIMESEC_t
absolute seconds since January 1, 1970. (GMT?)(signed) NOTE: Changing to __time64_t just adds more ra...
Definition: cTimeUnits.h:23