-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicroLog_config.hpp
73 lines (57 loc) · 1.57 KB
/
microLog_config.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* File: microLog_config.hpp
*
* Example configuration of the microLog logger.
* Use this file to set the parameters related to the logger.
* These macros can be defined in the makefile/build system.
*
* Author: Pietro Mele
*/
#ifndef MICRO_LOG_CONFIG_HPP
#define MICRO_LOG_CONFIG_HPP
#ifndef MICRO_LOG_ACTIVE
#define MICRO_LOG_ACTIVE
#endif
// Default minimum log level:
#ifndef MICRO_LOG_MIN_LEVEL
#define MICRO_LOG_MIN_LEVEL nolog
#endif
// Minimum log levels for specific code areas:
namespace uLog {
static const int
logHighLevel = detail,
logMountDisk = warning,
logProcess = detail,
logUnitTests = detail,
logInfo = detail;
static const int
logConstLevel1 = detail,
logConstLevel2 = warning;
static const char separator[] = " ";
}
#define MICRO_LOG_LEVEL1 warning
#define MICRO_LOG_LEVEL2 detail
#ifndef MICRO_LOG_DETAIL
#define MICRO_LOG_DETAIL 2
#endif
#ifndef MICRO_LOG_FILE_NAME
// Set the log file name at run time
//#define MICRO_LOG_FILE_NAME "default.log"
#endif
#ifndef MICRO_LOG_EXECUTABLE_NAME
#define MICRO_LOG_EXECUTABLE_NAME "Phoenix"
#endif
/// Specify one threading library to be used
#ifndef MICRO_LOG_THREADING
#define MICRO_LOG_THREADING MICRO_LOG_SINGLE_THREAD
//#define MICRO_LOG_THREADING MICRO_LOG_CPP11_THREAD
//#define MICRO_LOG_THREADING MICRO_LOG_BOOST_THREAD
//#define MICRO_LOG_THREADING MICRO_LOG_PTHREAD
#endif
/// Set this if the logger is in a DLL (to avoid static variables)
#ifdef WIN32
#ifdef LOGGER_IN_DLL
#define MICRO_LOG_DLL
#endif
#endif
#endif // MICRO_LOG_CONFIG_HPP