summaryrefslogtreecommitdiff
path: root/lib/common/Logging.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-01-23 01:32:08 +0000
committerChris Wilson <chris+github@qwirx.com>2012-01-23 01:32:08 +0000
commitcbc2639aec361e3832cc1adfc28079b49a89f0ad (patch)
treea58c866e4abb65c300d86e39801e3f5ee44c52d3 /lib/common/Logging.cpp
parentec36628676c99aa10f14f6f142d84e57143eda90 (diff)
Allow overriding Logging::Guard to dump stack backtraces as well.
Diffstat (limited to 'lib/common/Logging.cpp')
-rw-r--r--lib/common/Logging.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common/Logging.cpp b/lib/common/Logging.cpp
index f7f72713..f0cf74b4 100644
--- a/lib/common/Logging.cpp
+++ b/lib/common/Logging.cpp
@@ -46,6 +46,9 @@ Log::Level Logging::sGlobalLevel = Log::EVERYTHING;
Logging Logging::sGlobalLogging; //automatic initialisation
std::string Logging::sProgramName;
+int Logging::Guard::sGuardCount = 0;
+Log::Level Logging::Guard::sOriginalLevel = Log::INVALID;
+
Logging::Logging()
{
ASSERT(!spConsole);