AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LogCommon.h File Reference
#include "Define.h"

Go to the source code of this file.

Enumerations

enum  LogLevel : uint8 {
  LOG_LEVEL_DISABLED = 0 ,
  LOG_LEVEL_FATAL = 1 ,
  LOG_LEVEL_ERROR = 2 ,
  LOG_LEVEL_WARN = 3 ,
  LOG_LEVEL_INFO = 4 ,
  LOG_LEVEL_DEBUG = 5 ,
  LOG_LEVEL_TRACE = 6 ,
  NUM_ENABLED_LOG_LEVELS = LOG_LEVEL_TRACE ,
  LOG_LEVEL_INVALID = 0xFF
}
 
enum  AppenderType : uint8 {
  APPENDER_NONE ,
  APPENDER_CONSOLE ,
  APPENDER_FILE ,
  APPENDER_DB ,
  APPENDER_INVALID = 0xFF
}
 
enum  AppenderFlags : uint8 {
  APPENDER_FLAGS_NONE = 0x00 ,
  APPENDER_FLAGS_PREFIX_TIMESTAMP = 0x01 ,
  APPENDER_FLAGS_PREFIX_LOGLEVEL = 0x02 ,
  APPENDER_FLAGS_PREFIX_LOGFILTERTYPE = 0x04 ,
  APPENDER_FLAGS_USE_TIMESTAMP = 0x08 ,
  APPENDER_FLAGS_MAKE_FILE_BACKUP = 0x10
}
 
enum  DebugLogFilters {
  LOG_FILTER_NONE = 0x00000000 ,
  LOG_FILTER_UNITS = 0x00000001 ,
  LOG_FILTER_PETS = 0x00000002 ,
  LOG_FILTER_VEHICLES = 0x00000004 ,
  LOG_FILTER_TSCR = 0x00000008 ,
  LOG_FILTER_DATABASE_AI = 0x00000010 ,
  LOG_FILTER_MAPSCRIPTS = 0x00000020 ,
  LOG_FILTER_NETWORKIO = 0x00000040 ,
  LOG_FILTER_SPELLS_AURAS = 0x00000080 ,
  LOG_FILTER_ACHIEVEMENTSYS = 0x00000100 ,
  LOG_FILTER_CONDITIONSYS = 0x00000200 ,
  LOG_FILTER_POOLSYS = 0x00000400 ,
  LOG_FILTER_AUCTIONHOUSE = 0x00000800 ,
  LOG_FILTER_BATTLEGROUND = 0x00001000 ,
  LOG_FILTER_OUTDOORPVP = 0x00002000 ,
  LOG_FILTER_CHATSYS = 0x00004000 ,
  LOG_FILTER_LFG = 0x00008000 ,
  LOG_FILTER_MAPS = 0x00010000 ,
  LOG_FILTER_PLAYER_LOADING = 0x00020000 ,
  LOG_FILTER_PLAYER_ITEMS = 0x00040000 ,
  LOG_FILTER_PLAYER_SKILLS = 0x00080000 ,
  LOG_FILTER_LOOT = 0x00100000 ,
  LOG_FILTER_GUILD = 0x00200000 ,
  LOG_FILTER_TRANSPORTS = 0x00400000 ,
  LOG_FILTER_WARDEN = 0x00800000 ,
  LOG_FILTER_BATTLEFIELD = 0x01000000 ,
  LOG_FILTER_MODULES = 0x02000000 ,
  LOG_FILTER_CLOSE_SOCKET = 0x04000000
}
 

Enumeration Type Documentation

◆ AppenderFlags

Enumerator
APPENDER_FLAGS_NONE 
APPENDER_FLAGS_PREFIX_TIMESTAMP 
APPENDER_FLAGS_PREFIX_LOGLEVEL 
APPENDER_FLAGS_PREFIX_LOGFILTERTYPE 
APPENDER_FLAGS_USE_TIMESTAMP 
APPENDER_FLAGS_MAKE_FILE_BACKUP 
50{
57};
@ APPENDER_FLAGS_NONE
Definition: LogCommon.h:51
@ APPENDER_FLAGS_MAKE_FILE_BACKUP
Definition: LogCommon.h:56
@ APPENDER_FLAGS_USE_TIMESTAMP
Definition: LogCommon.h:55
@ APPENDER_FLAGS_PREFIX_TIMESTAMP
Definition: LogCommon.h:52
@ APPENDER_FLAGS_PREFIX_LOGFILTERTYPE
Definition: LogCommon.h:54
@ APPENDER_FLAGS_PREFIX_LOGLEVEL
Definition: LogCommon.h:53

◆ AppenderType

Enumerator
APPENDER_NONE 
APPENDER_CONSOLE 
APPENDER_FILE 
APPENDER_DB 
APPENDER_INVALID 
40{
45
46 APPENDER_INVALID = 0xFF // SKIP
47};
@ APPENDER_FILE
Definition: LogCommon.h:43
@ APPENDER_INVALID
Definition: LogCommon.h:46
@ APPENDER_CONSOLE
Definition: LogCommon.h:42
@ APPENDER_DB
Definition: LogCommon.h:44
@ APPENDER_NONE
Definition: LogCommon.h:41

◆ DebugLogFilters

Enumerator
LOG_FILTER_NONE 
LOG_FILTER_UNITS 
LOG_FILTER_PETS 
LOG_FILTER_VEHICLES 
LOG_FILTER_TSCR 
LOG_FILTER_DATABASE_AI 
LOG_FILTER_MAPSCRIPTS 
LOG_FILTER_NETWORKIO 
LOG_FILTER_SPELLS_AURAS 
LOG_FILTER_ACHIEVEMENTSYS 
LOG_FILTER_CONDITIONSYS 
LOG_FILTER_POOLSYS 
LOG_FILTER_AUCTIONHOUSE 
LOG_FILTER_BATTLEGROUND 
LOG_FILTER_OUTDOORPVP 
LOG_FILTER_CHATSYS 
LOG_FILTER_LFG 
LOG_FILTER_MAPS 
LOG_FILTER_PLAYER_LOADING 
LOG_FILTER_PLAYER_ITEMS 
LOG_FILTER_PLAYER_SKILLS 
LOG_FILTER_LOOT 
LOG_FILTER_GUILD 
LOG_FILTER_TRANSPORTS 
LOG_FILTER_WARDEN 
LOG_FILTER_BATTLEFIELD 
LOG_FILTER_MODULES 
LOG_FILTER_CLOSE_SOCKET 
61{
62 LOG_FILTER_NONE = 0x00000000,
63 LOG_FILTER_UNITS = 0x00000001, // Anything related to units that doesn't fit in other categories. ie. creature formations
64 LOG_FILTER_PETS = 0x00000002,
65 LOG_FILTER_VEHICLES = 0x00000004,
66 LOG_FILTER_TSCR = 0x00000008, // C++ AI, instance scripts, etc.
67 LOG_FILTER_DATABASE_AI = 0x00000010, // SmartAI, EventAI, CreatureAI
68 LOG_FILTER_MAPSCRIPTS = 0x00000020,
69 LOG_FILTER_NETWORKIO = 0x00000040, // Anything packet/netcode related
70 LOG_FILTER_SPELLS_AURAS = 0x00000080,
71 LOG_FILTER_ACHIEVEMENTSYS = 0x00000100,
72 LOG_FILTER_CONDITIONSYS = 0x00000200,
73 LOG_FILTER_POOLSYS = 0x00000400,
74 LOG_FILTER_AUCTIONHOUSE = 0x00000800,
75 LOG_FILTER_BATTLEGROUND = 0x00001000, // Anything related to arena's and battlegrounds
76 LOG_FILTER_OUTDOORPVP = 0x00002000,
77 LOG_FILTER_CHATSYS = 0x00004000,
78 LOG_FILTER_LFG = 0x00008000,
79 LOG_FILTER_MAPS = 0x00010000, // Maps, instances, grids, cells, visibility
80 LOG_FILTER_PLAYER_LOADING = 0x00020000, // Debug output from Player::_Load functions
81 LOG_FILTER_PLAYER_ITEMS = 0x00040000, // Anything item related
82 LOG_FILTER_PLAYER_SKILLS = 0x00080000, // Skills related
83 LOG_FILTER_LOOT = 0x00100000, // Loot related
84 LOG_FILTER_GUILD = 0x00200000, // Guild related
85 LOG_FILTER_TRANSPORTS = 0x00400000, // Transport related
86 LOG_FILTER_WARDEN = 0x00800000, // Warden related
87 LOG_FILTER_BATTLEFIELD = 0x01000000, // Battlefield related
88 LOG_FILTER_MODULES = 0x02000000, // Modules debug
89 LOG_FILTER_CLOSE_SOCKET = 0x04000000, // Whenever KickPlayer() or CloseSocket() are called
90};
@ LOG_FILTER_VEHICLES
Definition: LogCommon.h:65
@ LOG_FILTER_LFG
Definition: LogCommon.h:78
@ LOG_FILTER_PLAYER_ITEMS
Definition: LogCommon.h:81
@ LOG_FILTER_PETS
Definition: LogCommon.h:64
@ LOG_FILTER_ACHIEVEMENTSYS
Definition: LogCommon.h:71
@ LOG_FILTER_NONE
Definition: LogCommon.h:62
@ LOG_FILTER_CHATSYS
Definition: LogCommon.h:77
@ LOG_FILTER_TRANSPORTS
Definition: LogCommon.h:85
@ LOG_FILTER_AUCTIONHOUSE
Definition: LogCommon.h:74
@ LOG_FILTER_NETWORKIO
Definition: LogCommon.h:69
@ LOG_FILTER_GUILD
Definition: LogCommon.h:84
@ LOG_FILTER_MAPSCRIPTS
Definition: LogCommon.h:68
@ LOG_FILTER_PLAYER_SKILLS
Definition: LogCommon.h:82
@ LOG_FILTER_CONDITIONSYS
Definition: LogCommon.h:72
@ LOG_FILTER_DATABASE_AI
Definition: LogCommon.h:67
@ LOG_FILTER_LOOT
Definition: LogCommon.h:83
@ LOG_FILTER_POOLSYS
Definition: LogCommon.h:73
@ LOG_FILTER_MODULES
Definition: LogCommon.h:88
@ LOG_FILTER_CLOSE_SOCKET
Definition: LogCommon.h:89
@ LOG_FILTER_TSCR
Definition: LogCommon.h:66
@ LOG_FILTER_MAPS
Definition: LogCommon.h:79
@ LOG_FILTER_WARDEN
Definition: LogCommon.h:86
@ LOG_FILTER_BATTLEGROUND
Definition: LogCommon.h:75
@ LOG_FILTER_SPELLS_AURAS
Definition: LogCommon.h:70
@ LOG_FILTER_UNITS
Definition: LogCommon.h:63
@ LOG_FILTER_OUTDOORPVP
Definition: LogCommon.h:76
@ LOG_FILTER_BATTLEFIELD
Definition: LogCommon.h:87
@ LOG_FILTER_PLAYER_LOADING
Definition: LogCommon.h:80

◆ LogLevel

enum LogLevel : uint8
Enumerator
LOG_LEVEL_DISABLED 
LOG_LEVEL_FATAL 
LOG_LEVEL_ERROR 
LOG_LEVEL_WARN 
LOG_LEVEL_INFO 
LOG_LEVEL_DEBUG 
LOG_LEVEL_TRACE 
NUM_ENABLED_LOG_LEVELS 
LOG_LEVEL_INVALID 
25{
33
35 LOG_LEVEL_INVALID = 0xFF // SKIP
36};
@ NUM_ENABLED_LOG_LEVELS
Definition: LogCommon.h:34
@ LOG_LEVEL_INVALID
Definition: LogCommon.h:35
@ LOG_LEVEL_DEBUG
Definition: LogCommon.h:31
@ LOG_LEVEL_ERROR
Definition: LogCommon.h:28
@ LOG_LEVEL_FATAL
Definition: LogCommon.h:27
@ LOG_LEVEL_TRACE
Definition: LogCommon.h:32
@ LOG_LEVEL_WARN
Definition: LogCommon.h:29
@ LOG_LEVEL_DISABLED
Definition: LogCommon.h:26
@ LOG_LEVEL_INFO
Definition: LogCommon.h:30