* Implement timestamping of chat logs.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user