mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-02 07:00:29 +00:00
LDON tweaks, working branch, average_level pass
This commit is contained in:
@@ -121,6 +121,7 @@ namespace Logs {
|
||||
Expeditions,
|
||||
DynamicZones,
|
||||
Group,
|
||||
Adventure,
|
||||
MaxCategoryID /* Don't Remove this */
|
||||
};
|
||||
|
||||
@@ -201,6 +202,7 @@ namespace Logs {
|
||||
"Expeditions",
|
||||
"DynamicZones",
|
||||
"Group",
|
||||
"Adventure",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -636,6 +636,16 @@
|
||||
OutF(LogSys, Logs::Detail, Logs::DynamicZones, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
|
||||
} while (0)
|
||||
|
||||
#define LogAdventure(message, ...) do {\
|
||||
if (LogSys.log_settings[Logs::Adventure].is_category_enabled == 1)\
|
||||
OutF(LogSys, Logs::General, Logs::Adventure, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
|
||||
} while (0)
|
||||
|
||||
#define LogAdventureDetail(message, ...) do {\
|
||||
if (LogSys.log_settings[Logs::Adventure].is_category_enabled == 1)\
|
||||
OutF(LogSys, Logs::Detail, Logs::Adventure, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
|
||||
} while (0)
|
||||
|
||||
#define Log(debug_level, log_category, message, ...) do {\
|
||||
if (LogSys.log_settings[log_category].is_category_enabled == 1)\
|
||||
LogSys.Out(debug_level, log_category, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
|
||||
|
||||
Reference in New Issue
Block a user