git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2583 19bc5d8c-e614-43d4-8b26-e1612bc8e597

This commit is contained in:
David Burgess 2011-11-20 00:22:41 +00:00
parent 0f0be8ba43
commit 8d5a3c690d
2 changed files with 21 additions and 2 deletions

View file

@ -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);