diff options
-rw-r--r-- | src/shared/Log.cpp | 2 | ||||
-rw-r--r-- | src/trinitycore/trinitycore.conf.dist | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 07c3bb23d87..2cd3919c526 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -153,7 +153,7 @@ void Log::Initialize() dberLogfile = openLogFile("DBErrorLogFile",NULL,"a"); raLogfile = openLogFile("RaLogFile",NULL,"a"); - chatLogfile = openLogFile("ChatLogFile",NULL,"a"); + chatLogfile = openLogFile("ChatLogFile","ChatLogTimestamp","a"); // Main log file settings m_logLevel = sConfig.GetIntDefault("LogLevel", LOGL_NORMAL); diff --git a/src/trinitycore/trinitycore.conf.dist b/src/trinitycore/trinitycore.conf.dist index 6a80ca9075f..1411aed3091 100644 --- a/src/trinitycore/trinitycore.conf.dist +++ b/src/trinitycore/trinitycore.conf.dist @@ -386,6 +386,11 @@ AddonChannel = 1 # Default: 0 - off # 1 - on # +# ChatLogTimestamp +# Chat Logfile with timestamp of server start in name +# Default: 0 - no timestamp in name +# 1 - add timestamp in name in form Logname_YYYY-MM-DD_HH-MM-SS.Ext for Logname.Ext +# ################################################################################################################### LogSQL = 1 @@ -425,6 +430,7 @@ ChatLogs.Guild = 0 ChatLogs.Public = 0 ChatLogs.Addon = 0 ChatLogs.BattleGround = 0 +ChatLogTimestamp = 0 ################################################################################################################### # SERVER SETTINGS |