diff options
author | click <none@none> | 2010-11-19 13:13:07 +0100 |
---|---|---|
committer | click <none@none> | 2010-11-19 13:13:07 +0100 |
commit | 67fade84d313285ae6b219fddddb4868a7de203a (patch) | |
tree | 8b3d53b165468334c392bc80687cbdad1cbf03df /src/server/shared/Logging/Log.h | |
parent | 67cd8d18e1bb5e1c41670270def44c8b10f91945 (diff) |
Core/Commands: Enable SQL query logging by config and command )patch by leak)
Closes issue 4853.
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Logging/Log.h')
-rwxr-xr-x | src/server/shared/Logging/Log.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/shared/Logging/Log.h b/src/server/shared/Logging/Log.h index a4e8f7eb30e..019221f7811 100755 --- a/src/server/shared/Logging/Log.h +++ b/src/server/shared/Logging/Log.h @@ -118,6 +118,7 @@ class Log void SetLogLevel(char * Level); void SetLogFileLevel(char * Level); void SetDBLogLevel(char * Level); + void SetSQLDriverQueryLogging(bool newStatus) { m_sqlDriverQueryLogging = newStatus; } void SetRealmID(uint32 id) { realm = id; } uint32 getLogFilter() const { return m_logFilter; } @@ -128,6 +129,7 @@ class Log bool GetLogDBLater() { return m_enableLogDBLater; } void SetLogDB(bool enable) { m_enableLogDB = enable; } void SetLogDBLater(bool value) { m_enableLogDBLater = value; } + bool GetSQLDriverQueryLogging() { return m_sqlDriverQueryLogging; } private: FILE* openLogFile(char const* configFileName,char const* configTimeStampFlag, char const* mode); FILE* openGmlogPerAccount(uint32 account); @@ -158,6 +160,10 @@ class Log ColorTypes m_colors[4]; // log levels: + // false: errors only, true: full query logging + bool m_sqlDriverQueryLogging; + + // log levels: // 0 minimum/string, 1 basic/error, 2 detail, 3 full/debug uint8 m_dbLogLevel; uint8 m_logLevel; |