TrinityCore
LogCommon.h
Go to the documentation of this file.
1
/*
2
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
* more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef LogCommon_h__
19
#define LogCommon_h__
20
21
#include "
Define.h
"
22
23
// EnumUtils: DESCRIBE THIS
24
enum
LogLevel
:
uint8
25
{
26
LOG_LEVEL_DISABLED
= 0,
27
LOG_LEVEL_TRACE
= 1,
28
LOG_LEVEL_DEBUG
= 2,
29
LOG_LEVEL_INFO
= 3,
30
LOG_LEVEL_WARN
= 4,
31
LOG_LEVEL_ERROR
= 5,
32
LOG_LEVEL_FATAL
= 6,
33
34
NUM_ENABLED_LOG_LEVELS
=
LOG_LEVEL_FATAL
,
// SKIP
35
LOG_LEVEL_INVALID
= 0xFF
// SKIP
36
};
37
38
// EnumUtils: DESCRIBE THIS
39
enum
AppenderType
:
uint8
40
{
41
APPENDER_NONE
,
42
APPENDER_CONSOLE
,
43
APPENDER_FILE
,
44
APPENDER_DB
,
45
46
APPENDER_INVALID
= 0xFF
// SKIP
47
};
48
49
enum
AppenderFlags
:
uint8
50
{
51
APPENDER_FLAGS_NONE
= 0x00,
52
APPENDER_FLAGS_PREFIX_TIMESTAMP
= 0x01,
53
APPENDER_FLAGS_PREFIX_LOGLEVEL
= 0x02,
54
APPENDER_FLAGS_PREFIX_LOGFILTERTYPE
= 0x04,
55
APPENDER_FLAGS_USE_TIMESTAMP
= 0x08,
// only used by FileAppender
56
APPENDER_FLAGS_MAKE_FILE_BACKUP
= 0x10
// only used by FileAppender
57
};
58
59
#endif
// LogCommon_h__
Define.h
uint8
uint8_t uint8
Definition:
Define.h:144
AppenderFlags
AppenderFlags
Definition:
LogCommon.h:50
APPENDER_FLAGS_NONE
@ APPENDER_FLAGS_NONE
Definition:
LogCommon.h:51
APPENDER_FLAGS_MAKE_FILE_BACKUP
@ APPENDER_FLAGS_MAKE_FILE_BACKUP
Definition:
LogCommon.h:56
APPENDER_FLAGS_USE_TIMESTAMP
@ APPENDER_FLAGS_USE_TIMESTAMP
Definition:
LogCommon.h:55
APPENDER_FLAGS_PREFIX_TIMESTAMP
@ APPENDER_FLAGS_PREFIX_TIMESTAMP
Definition:
LogCommon.h:52
APPENDER_FLAGS_PREFIX_LOGFILTERTYPE
@ APPENDER_FLAGS_PREFIX_LOGFILTERTYPE
Definition:
LogCommon.h:54
APPENDER_FLAGS_PREFIX_LOGLEVEL
@ APPENDER_FLAGS_PREFIX_LOGLEVEL
Definition:
LogCommon.h:53
AppenderType
AppenderType
Definition:
LogCommon.h:40
APPENDER_FILE
@ APPENDER_FILE
Definition:
LogCommon.h:43
APPENDER_INVALID
@ APPENDER_INVALID
Definition:
LogCommon.h:46
APPENDER_CONSOLE
@ APPENDER_CONSOLE
Definition:
LogCommon.h:42
APPENDER_DB
@ APPENDER_DB
Definition:
LogCommon.h:44
APPENDER_NONE
@ APPENDER_NONE
Definition:
LogCommon.h:41
LogLevel
LogLevel
Definition:
LogCommon.h:25
NUM_ENABLED_LOG_LEVELS
@ NUM_ENABLED_LOG_LEVELS
Definition:
LogCommon.h:34
LOG_LEVEL_INVALID
@ LOG_LEVEL_INVALID
Definition:
LogCommon.h:35
LOG_LEVEL_DEBUG
@ LOG_LEVEL_DEBUG
Definition:
LogCommon.h:28
LOG_LEVEL_ERROR
@ LOG_LEVEL_ERROR
Definition:
LogCommon.h:31
LOG_LEVEL_FATAL
@ LOG_LEVEL_FATAL
Definition:
LogCommon.h:32
LOG_LEVEL_TRACE
@ LOG_LEVEL_TRACE
Definition:
LogCommon.h:27
LOG_LEVEL_WARN
@ LOG_LEVEL_WARN
Definition:
LogCommon.h:30
LOG_LEVEL_DISABLED
@ LOG_LEVEL_DISABLED
Definition:
LogCommon.h:26
LOG_LEVEL_INFO
@ LOG_LEVEL_INFO
Definition:
LogCommon.h:29
common
Logging
LogCommon.h
Generated on Thu Mar 14 2024 23:39:07 for TrinityCore by
1.9.4