diff options
author | XTZGZoReX <none@none> | 2009-03-27 16:56:03 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2009-03-27 16:56:03 +0100 |
commit | 5f47775ac36c78512e9a233ad31db657045617fb (patch) | |
tree | e263314b74c9cb258849618b9484ff1f90a01f98 /src | |
parent | 6f1195d9a8110f36b25bc4822b8d641ad20e014c (diff) |
* Implement timestamping of chat logs.
--HG--
branch : trunk
Diffstat (limited to 'src')
-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 |