#include "MsgLogger/MsgLoggerImpl.h"
#include <stdlib.h>
#include <algorithm>
#include <map>
#include <sstream>
#include <iostream>
#include <boost/shared_ptr.hpp>
#include <boost/thread/mutex.hpp>
#include "MsgLogger/MsgHandler.h"
#include "MsgLogger/MsgHandlerStdStreams.h"
#include "MsgLogger/MsgLogRecord.h"
Go to the source code of this file.
Namespaces | |
namespace | MsgLogger |
Typedefs | |
typedef std::map< std::string, boost::shared_ptr< MsgLogger::MsgLoggerImpl > > | Name2ImplMap |
Functions | |
std::string | parentName (const std::string &name) |
void | initRoot (MsgLogger::MsgLoggerImpl &root) |
void | readConfig () |
void | makeLogger (const std::string &name, const std::string &level, bool propagate) |
void | readConfig () |
Variables | |
Name2ImplMap | map |
bool | destroyed |
Name2Impl | implementations |
static boost::mutex | newLoggerMutex |
typedef std::map< std::string, boost::shared_ptr<MsgLogger::MsgLoggerImpl> > Name2ImplMap [static] |
Definition at line 58 of file MsgLoggerImpl.cpp.
void @4::initRoot | ( | MsgLogger::MsgLoggerImpl & | root | ) | [static] |
Definition at line 78 of file MsgLoggerImpl.cpp.
References MsgLogger::MsgLoggerImpl::addHandler().
Referenced by MsgLogger::MsgLoggerImpl::log(), and MsgLogger::MsgLoggerImpl::logging().
void @5::makeLogger | ( | const std::string & | name, | |
const std::string & | level, | |||
bool | propagate | |||
) | [static] |
Definition at line 227 of file MsgLoggerImpl.cpp.
References implementations, and logger.
Referenced by readConfig().
std::string @4::parentName | ( | const std::string & | name | ) | [static] |
Definition at line 68 of file MsgLoggerImpl.cpp.
Referenced by MsgLogger::MsgLoggerImpl::log(), and MsgLogger::MsgLoggerImpl::logging().
void @5::readConfig | ( | ) | [static] |
Definition at line 250 of file MsgLoggerImpl.cpp.
References iter, makeLogger(), and MsgLogger::propagate().
void @4::readConfig | ( | ) | [static] |
Referenced by MsgLogger::MsgLoggerImpl::getLogger().
bool destroyed |
Definition at line 63 of file MsgLoggerImpl.cpp.
Name2Impl implementations [static] |
Definition at line 65 of file MsgLoggerImpl.cpp.
Referenced by MsgLogger::MsgLoggerImpl::getLogger(), and makeLogger().
Definition at line 62 of file MsgLoggerImpl.cpp.
boost::mutex newLoggerMutex [static] |
Definition at line 86 of file MsgLoggerImpl.cpp.
Referenced by MsgLogger::MsgLoggerImpl::getLogger().