Difference between revisions of "Admins:LogSystem"
John adams (talk | contribs) |
|||
| Line 1: | Line 1: | ||
| + | {{PageHeaderChild|Admins|Log System}} | ||
| + | <br/> | ||
== EQ2Emulator: Log System == | == EQ2Emulator: Log System == | ||
The 'log_config.xml' file is the '''optional''' Log System configuration file for EQ2Emulator Server. All loggers have default settings defined in the code (LogTypes.h) and this file is used to override those defaults without having to recompile the code. | The 'log_config.xml' file is the '''optional''' Log System configuration file for EQ2Emulator Server. All loggers have default settings defined in the code (LogTypes.h) and this file is used to override those defaults without having to recompile the code. | ||
| Line 10: | Line 12: | ||
| − | + | {{Header|Categories|BackgroundColor=3d78b4|FontColor=ffffff}} | |
This is the list of current CATEGORIES available: | This is the list of current CATEGORIES available: | ||
| − | = | + | {|style="table-layout:fixed; width: 100%;" |
| − | + | |{{TextBox|System Loggers| WORLD | |
LOGIN | LOGIN | ||
PATCHER | PATCHER | ||
| Line 21: | Line 23: | ||
DATABASE | DATABASE | ||
MUTEX | MUTEX | ||
| − | MISC | + | MISC|BackgroundColor=ffffff|FontColor=000}} |
| − | = | + | {|style="table-layout:fixed; width: 100%;" |
| − | + | |{{TextBox|Network Loggers| CCLIENT | |
NET | NET | ||
OPCODE | OPCODE | ||
| − | PACKET | + | PACKET|BackgroundColor=ffffff|FontColor=000}} |
| − | = | + | {|style="table-layout:fixed; width: 100%;" |
| − | + | |{{TextBox|Player Loggers| PLAYER|BackgroundColor=ffffff|FontColor=000}} | |
| − | = | + | {|style="table-layout:fixed; width: 100%;" |
| − | + | |{{TextBox|SubSystem Loggers| CHAT | |
COLLECTIONS | COLLECTIONS | ||
COMBAT | COMBAT | ||
| Line 50: | Line 52: | ||
SKILLS | SKILLS | ||
SPELLS | SPELLS | ||
| − | TRADESKILLS | + | TRADESKILLS|BackgroundColor=ffffff|FontColor=000}} |
| − | = | + | {|style="table-layout:fixed; width: 100%;" |
| − | + | |{{TextBox|Spawn Loggers| SPAWN | |
OBJECT | OBJECT | ||
SIGN | SIGN | ||
WIDGET | WIDGET | ||
| − | GROUNDSPAWN | + | GROUNDSPAWN|BackgroundColor=ffffff|FontColor=000}} |
| − | = | + | {|style="table-layout:fixed; width: 100%;" |
| − | + | |{{TextBox|Zone Loggers| ZONE | |
| − | INSTANCE | + | INSTANCE|BackgroundColor=ffffff|FontColor=000}} |
| − | + | {{Header|Types|BackgroundColor=3d78b4|FontColor=ffffff}} | |
All CATEGORIES have 7 TYPES, with some categories having a few extra as needed: | All CATEGORIES have 7 TYPES, with some categories having a few extra as needed: | ||
| Line 76: | Line 78: | ||
| − | + | {{Header|Level|BackgroundColor=3d78b4|FontColor=ffffff}} | |
The "Level" parameter tells the logger how much detail you wish to see in your debugging of a particular logger. Valid range is 0 (minimal) through 9 (maximum). | The "Level" parameter tells the logger how much detail you wish to see in your debugging of a particular logger. Valid range is 0 (minimal) through 9 (maximum). | ||
| Line 85: | Line 87: | ||
| − | + | {{Header|Color|BackgroundColor=3d78b4|FontColor=ffffff}} | |
The "Color" parameter allows you to set your own color for the log entry (restricted to defined colors in code) | The "Color" parameter allows you to set your own color for the log entry (restricted to defined colors in code) | ||
| Line 97: | Line 99: | ||
| − | + | {{Header|Enabled|BackgroundColor=3d78b4|FontColor=ffffff}} | |
The "Enabled" parameter allows you to toggle the logger on or off without removing the entry from log_config.xml | The "Enabled" parameter allows you to toggle the logger on or off without removing the entry from log_config.xml | ||
| − | + | ||
| + | {{Header|Logs|BackgroundColor=3d78b4|FontColor=ffffff}} | ||
The "Logs" parameter lets you direct the logger to one of 3 outputs, or any combination of the 3 (bitwise): | The "Logs" parameter lets you direct the logger to one of 3 outputs, or any combination of the 3 (bitwise): | ||
| Line 112: | Line 115: | ||
To direct logger output to just File, Logs="1" | To direct logger output to just File, Logs="1" | ||
| − | + | ||
| + | {{Header|Example|BackgroundColor=3d78b4|FontColor=ffffff}} | ||
Example LogConfig (you can use any 1 TYPE definition, you do not need them all, but the XML must be formatted as follows): | Example LogConfig (you can use any 1 TYPE definition, you do not need them all, but the XML must be formatted as follows): | ||
Revision as of 13:26, 3 August 2015
Admins - Log System
Return to: Admins | Tutorials | Portal | Forum | Project Manager | Bug Tracker
EQ2Emulator: Log System
The 'log_config.xml' file is the optional Log System configuration file for EQ2Emulator Server. All loggers have default settings defined in the code (LogTypes.h) and this file is used to override those defaults without having to recompile the code.
Scatman has implemented "log queuing" functionality for our very active Log System. The problem was, so many logs were being written at the same time, they started to inject over each other making the logs unreadable. Now, logs are handled as FIFO - First In, First Out. The system is undergoing extensive testing, but for now performs wonderfully with the addition of the "Level" parameter as well.
The LogWrite system consists of these elements:
LogWrite(CATEGORY__TYPE, Level, "Tag", "Formatted Text", params);
This is the list of current CATEGORIES available:
System Loggers WORLD LOGIN PATCHER PARSER INIT DATABASE MUTEX MISC
|