Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cLogLevel.h
Go to the documentation of this file.
1 //
5 //
6 
7 #ifndef _INC_cLogLevel_H
8 #define _INC_cLogLevel_H
9 #ifndef NO_PRAGMA_ONCE
10 #pragma once
11 #endif
12 
13 #include "GrayCore.h"
14 
15 namespace Gray
16 {
17  typedef char LOGCHAR_t;
18 #define LOGSTR(x) ::Gray::StrArg< ::Gray::LOGCHAR_t >(x)
19 #define LOGSTR2(x,y) ::Gray::StrArg< ::Gray::LOGCHAR_t >(x,(RADIX_t)y)
20 
22  {
26 #define LOGLEVELDEF(a,b,c,d) LOGLEV_##a,
27 #include "cLogLevel.tbl"
28 #undef LOGLEVELDEF
30  };
31 
32  struct GRAYCORE_LINK cLogLevel // static
33  {
34  static const LOGCHAR_t* const k_pszPrefixes[LOGLEV_QTY + 1];
35  static const LOGCHAR_t* GRAYCALL GetPrefixStr(LOGLEV_TYPE eLogLevel);
36  };
37 };
38 #endif
#define GRAYCORE_LINK
Definition: GrayCore.h:47
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
< The main namespace for all Core functions.
Definition: GrayCore.cpp:14
LOGLEV_TYPE
Definition: cLogLevel.h:22
@ LOGLEV_QTY
8= Filter everything. i want to see nothing.
Definition: cLogLevel.h:29
char LOGCHAR_t
always just use UTF8 for logs, don't bother with UNICODE.
Definition: cLogLevel.h:17
Definition: cLogLevel.h:33