RF24Log  0.1.3
Unified logging library
LevelDescriptions.h
Go to the documentation of this file.
1 
15 #ifndef SRC_RF24LOGPARTS_LEVELDESCRIPTION_H_
16 #define SRC_RF24LOGPARTS_LEVELDESCRIPTION_H_
17 
18 // Uncomment either of the following optons to change the description of log levels
19 // #define RF24LOG_SHORT_DESC
20 // #define RF24LOG_TERSE_DESC
21 
30 #if defined (RF24LOG_SHORT_DESC)
31 const char RF24LogDescError[] = " ERR";
32 const char RF24LogDescWarn[] = "WARN";
33 const char RF24LogDescInfo[] = "INFO";
34 const char RF24LogDescDebug[] = " DBG";
35 const char RF24LogDescLevel[] = "L ";
36 
37 #elif defined (RF24LOG_TERSE_DESC)
38 const char RF24LogDescError[] = " E";
39 const char RF24LogDescWarn[] = " W";
40 const char RF24LogDescInfo[] = " I";
41 const char RF24LogDescDebug[] = "DB";
42 const char RF24LogDescLevel[] = "";
43 
44 #else // !defined(RF24LOG_*_DESC)
46 const char RF24LogDescError[] = "ERROR";
48 const char RF24LogDescWarn[] = " WARN";
50 const char RF24LogDescInfo[] = " INFO";
52 const char RF24LogDescDebug[] = "DEBUG";
54 const char RF24LogDescLevel[] = "Lvl ";
55 #endif // !defined(RF24LOG_*_DESC)
56 
58 const char * const RF24LogDescLevels[] =
59 {
64 };
65 
66 #ifdef DOXYGEN_FORCED
78 #define RF24LOG_SHORT_DESC
79 
91 #define RF24LOG_TERSE_DESC
92 #endif
93 
96 #endif /* SRC_RF24LOGPARTS_LEVELDESCRIPTION_H_ */
const char RF24LogDescLevel[]
description of the DEBUG base level
const char *const RF24LogDescLevels[]
collection of the base level descriptions
const char RF24LogDescInfo[]
description of the INFO base level
const char RF24LogDescError[]
description of the ERROR base level
const char RF24LogDescWarn[]
description of the WARN base level
const char RF24LogDescDebug[]
description of the DEBUG base level