diff options
author | dburgess <dburgess@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-20 00:22:41 +0000 |
---|---|---|
committer | dburgess <dburgess@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-20 00:22:41 +0000 |
commit | 7b2d522c715f0de762d36a03ca2c8cdf07c6ec19 (patch) | |
tree | 717a0e72008b3cd772aef088854052356b03b3cd /CommonLibs/Logger.cpp | |
parent | c8739b8b71cc5f4e405a21b788bee31086e21478 (diff) |
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2583 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'CommonLibs/Logger.cpp')
-rw-r--r-- | CommonLibs/Logger.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CommonLibs/Logger.cpp b/CommonLibs/Logger.cpp index 57d2bff..d8bfc6e 100644 --- a/CommonLibs/Logger.cpp +++ b/CommonLibs/Logger.cpp @@ -150,6 +150,7 @@ void addAlarm(const string& s) Log::~Log() { + if (mDummyInit) return; // Anything at or above LOG_CRIT is an "alarm". // Save alarms in the local list and echo them to stderr. if (mPriority <= LOG_CRIT) { @@ -162,6 +163,13 @@ Log::~Log() } +Log::Log(const char* name, const char* level, int facility) +{ + mDummyInit = true; + gLogInit(name, level, facility); +} + + ostringstream& Log::get() { assert(mPriority<numLevels); |