* Implement timestamping of chat logs.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-27 16:56:03 +01:00
parent 6f1195d9a8
commit 5f47775ac3
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ void Log::Initialize()
dberLogfile = openLogFile("DBErrorLogFile",NULL,"a"); dberLogfile = openLogFile("DBErrorLogFile",NULL,"a");
raLogfile = openLogFile("RaLogFile",NULL,"a"); raLogfile = openLogFile("RaLogFile",NULL,"a");
chatLogfile = openLogFile("ChatLogFile",NULL,"a"); chatLogfile = openLogFile("ChatLogFile","ChatLogTimestamp","a");
// Main log file settings // Main log file settings
m_logLevel = sConfig.GetIntDefault("LogLevel", LOGL_NORMAL); m_logLevel = sConfig.GetIntDefault("LogLevel", LOGL_NORMAL);
+6
View File
@@ -386,6 +386,11 @@ AddonChannel = 1
# Default: 0 - off # Default: 0 - off
# 1 - on # 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 LogSQL = 1
@@ -425,6 +430,7 @@ ChatLogs.Guild = 0
ChatLogs.Public = 0 ChatLogs.Public = 0
ChatLogs.Addon = 0 ChatLogs.Addon = 0
ChatLogs.BattleGround = 0 ChatLogs.BattleGround = 0
ChatLogTimestamp = 0
################################################################################################################### ###################################################################################################################
# SERVER SETTINGS # SERVER SETTINGS