aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Log.h
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-03-25 14:25:15 +0100
committerXTZGZoReX <none@none>2009-03-25 14:25:15 +0100
commit82e966e5f2862f30e1a661c4fe2e09f5525c4a96 (patch)
treec394ead852cb20d4a3753fa5323de16a32090836 /src/shared/Log.h
parent833eaa9ed38e822e4704738fe583aebcbbaa6df6 (diff)
* Added support for logging chats: Guild, raid, party, public, officer chat, addon messages, whispers, system/custom channels.
* Added config options to enable/disable them (ChatLogs.*), LogDB.Chat (enables/disables DB logging of chats), and ChatLogFile to specify the log file to use. --HG-- branch : trunk
Diffstat (limited to 'src/shared/Log.h')
-rw-r--r--src/shared/Log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/Log.h b/src/shared/Log.h
index a82b5a6a068..a0220b1bce7 100644
--- a/src/shared/Log.h
+++ b/src/shared/Log.h
@@ -47,6 +47,7 @@ enum LogTypes
LOG_TYPE_RA = 7,
LOG_TYPE_GM = 8,
LOG_TYPE_CRASH = 9,
+ LOG_TYPE_CHAT = 10,
MAX_LOG_TYPES
};
@@ -106,6 +107,7 @@ class Log : public Trinity::Singleton<Log, Trinity::ClassLevelLockable<Log, ZThr
void outChar( const char * str, ... ) ATTR_PRINTF(2,3);
void outCommand( uint32 account, const char * str, ...) ATTR_PRINTF(3,4);
void outRemote( const char * str, ... ) ATTR_PRINTF(2,3);
+ void outChat( const char * str, ... ) ATTR_PRINTF(2,3);
void outCharDump( const char * str, uint32 account_id, uint32 guid, const char * name );
static void outTimestamp(FILE* file);
@@ -133,6 +135,7 @@ class Log : public Trinity::Singleton<Log, Trinity::ClassLevelLockable<Log, ZThr
FILE* gmLogfile;
FILE* charLogfile;
FILE* dberLogfile;
+ FILE* chatLogfile;
// cache values for after initilization use (like gm log per account case)
std::string m_logsDir;
@@ -159,6 +162,7 @@ class Log : public Trinity::Singleton<Log, Trinity::ClassLevelLockable<Log, ZThr
bool m_dbChar;
bool m_dbRA;
bool m_dbGM;
+ bool m_dbChat;
bool m_charLog_Dump;
};