logog
logger optimized for games
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
const.hpp
Go to the documentation of this file.
1
5
#ifndef __LOGOG_CONST_HPP__
6
#define __LOGOG_CONST_HPP__
7
8
#ifndef LOGOG_FORMATTER_MAX_LENGTH
9
10
#define LOGOG_FORMATTER_MAX_LENGTH ( 1024 * 16 )
11
#endif
12
13
#ifndef LOGOG_DEFAULT_LOG_BUFFER_SIZE
14
15
#define LOGOG_DEFAULT_LOG_BUFFER_SIZE ( 4 * 1024 * 1024 )
16
#endif
17
18
#ifndef LOGOG_TIME_STRING_MAX
19
20
#define LOGOG_TIME_STRING_MAX 256
21
#endif
22
23
#ifndef LOGOG_TIME_FORMAT_MAX
24
25
#define LOGOG_TIME_FORMAT_MAX 128
26
#endif
27
28
#ifndef LOGOG_DEFAULT_TIME_FORMAT
29
30
#define LOGOG_DEFAULT_TIME_FORMAT "%c"
31
#endif
32
33
41
#define LOGOG_LEVEL_NONE 0
43
#define LOGOG_LEVEL_EMERGENCY 8
44
#define LOGOG_LEVEL_ALERT 16
45
#define LOGOG_LEVEL_CRITICAL 24
46
#define LOGOG_LEVEL_ERROR 32
47
#define LOGOG_LEVEL_WARN 40
48
#define LOGOG_LEVEL_WARN1 48
49
#define LOGOG_LEVEL_WARN2 56
50
#define LOGOG_LEVEL_WARN3 64
51
#define LOGOG_LEVEL_INFO 72
52
#define LOGOG_LEVEL_DEBUG 80
53
#define LOGOG_LEVEL_ALL 88
54
56
#define LOGOG_LEVEL_TYPE int
57
58
#ifndef LOGOG_LEVEL
59
#define LOGOG_LEVEL LOGOG_LEVEL_DEBUG
60
#endif
61
68
typedef
enum
70
{
71
TOPIC_LEVEL_FLAG
= 0x01,
72
TOPIC_LINE_NUMBER_FLAG
= 0x02,
73
TOPIC_FILE_NAME_FLAG
= 0x04,
74
TOPIC_GROUP_FLAG
= 0x08,
75
TOPIC_CATEGORY_FLAG
= 0x10,
76
TOPIC_MESSAGE_FLAG
= 0x20,
77
TOPIC_TIMESTAMP_FLAG
= 0x40,
79
TOPIC_ALL
= 0x7f
80
}
TopicBitsType
;
82
85
typedef
int
TOPIC_FLAGS
;
86
88
89
typedef
enum
90
{
91
TOPIC_LEVEL
= 0,
92
TOPIC_LINE_NUMBER
= 1,
94
TOPIC_INT_COUNT
= 2,
95
96
TOPIC_FILE_NAME
= 0,
97
TOPIC_GROUP
= 1,
98
TOPIC_CATEGORY
= 2,
99
TOPIC_MESSAGE
= 3,
101
TOPIC_STRING_COUNT
= 4
102
}
TopicOffsetType
;
104
105
#endif // __LOGOG_CONST_HPP__
TOPIC_STRING_COUNT
Definition:
const.hpp:101
TOPIC_CATEGORY_FLAG
Definition:
const.hpp:75
TOPIC_FLAGS
int TOPIC_FLAGS
[Topic Bits]
Definition:
const.hpp:85
TOPIC_LEVEL
Definition:
const.hpp:91
TOPIC_GROUP
Definition:
const.hpp:97
TopicOffsetType
TopicOffsetType
[Topic Offsets]
Definition:
const.hpp:89
TOPIC_LINE_NUMBER_FLAG
Definition:
const.hpp:72
TOPIC_CATEGORY
Definition:
const.hpp:98
TOPIC_FILE_NAME
Definition:
const.hpp:96
TOPIC_TIMESTAMP_FLAG
Definition:
const.hpp:77
TopicBitsType
TopicBitsType
[Topic Bits]
Definition:
const.hpp:69
TOPIC_GROUP_FLAG
Definition:
const.hpp:74
TOPIC_INT_COUNT
Definition:
const.hpp:94
TOPIC_FILE_NAME_FLAG
Definition:
const.hpp:73
TOPIC_MESSAGE_FLAG
Definition:
const.hpp:76
TOPIC_LEVEL_FLAG
Definition:
const.hpp:71
TOPIC_LINE_NUMBER
Definition:
const.hpp:92
TOPIC_MESSAGE
Definition:
const.hpp:99
TOPIC_ALL
Definition:
const.hpp:79
include
const.hpp
Generated on Wed Jul 26 2017 00:58:02 for logog by
1.8.10