mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Logging: Try to simplify configuration of loggers and appenders
Changed multiple lines to a simple format: - Logger.name=Type,LogLevel,Flags,AppenderList - Appender.name=Type,LogLevel,Flags,optional1,optional2 * Type = File: optional1 = File name, optiona2 = Mode * Type = Console: optional1 = Colors Created a default set of loggers and appenders. - Root logger defaults to Error, that means you will see nothing on console by default (not even loading) - You need to add the loggers to Loggers options if you want to enable them, otherwise Root logger will be used for all types Restored outSQLDriver (LOG_FILTER_SQL_DRIVER), outSQLDev (LOG_FILTER_SQL_DEV), outArena (LOG_FILTER_ARENA) and outChar (LOG_FILTER_CHARACTER) functionality by creating new types (LOG_FILTER_CHARACTER is a rename of LOG_FILTER_DELETE. Note: You need to update your config file... again (yeah sorry... trying to make it simpler)
This commit is contained in:
@@ -201,8 +201,14 @@ char const* Appender::getLogFilterTypeString(LogFilterType type)
|
||||
return "GAMEEVENTS";
|
||||
case LOG_FILTER_CALENDAR:
|
||||
return "CALENDAR";
|
||||
case LOG_FILTER_PLAYER_DELETE:
|
||||
return "PLAYER_DELETE";
|
||||
case LOG_FILTER_CHARACTER:
|
||||
return "CHARACTER";
|
||||
case LOG_FILTER_ARENAS:
|
||||
return "ARENAS";
|
||||
case LOG_FILTER_SQL_DRIVER:
|
||||
return "SQL DRIVER";
|
||||
case LOG_FILTER_SQL_DEV:
|
||||
return "SQL DEV";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user