diff options
author | Machiavelli <none@none> | 2010-08-26 21:50:54 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-08-26 21:50:54 +0200 |
commit | 175fece0737a36690a2f9c283809c5b04b5c2a3c (patch) | |
tree | 303f8521eca348c13cc650d71f453881586e5854 /src/server/shared/Logging/Log.h | |
parent | 11de1d43695c289effc5dccb4663d16f927cb657 (diff) |
Core/Logging:
- Implement sLog.outSQLDriver that will log SQL driver related events (non-content related).
- Queries will now be logged into this file as well instead of normal log file (requires debug build).
- Don“t forget to update your authserver.conf and worldserver.conf
Core/build:
- Fix non-PCH build
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Logging/Log.h')
-rw-r--r-- | src/server/shared/Logging/Log.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/shared/Logging/Log.h b/src/server/shared/Logging/Log.h index fc8eddf4c6b..7b7e45413fc 100644 --- a/src/server/shared/Logging/Log.h +++ b/src/server/shared/Logging/Log.h @@ -112,6 +112,7 @@ class Log void outRemote( const char * str, ... ) ATTR_PRINTF(2,3); void outChat( const char * str, ... ) ATTR_PRINTF(2,3); void outArena( const char * str, ... ) ATTR_PRINTF(2,3); + void outSQLDriver( 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); @@ -141,6 +142,7 @@ class Log FILE* dberLogfile; FILE* chatLogfile; FILE* arenaLogFile; + FILE* sqlLogFile; // cache values for after initilization use (like gm log per account case) std::string m_logsDir; |