org::xmlBlaster::util::LogManager Class Reference

Manages the logging framework. More...

Collaboration diagram for org::xmlBlaster::util::LogManager:

Collaboration graph
List of all members.

Public Types

typedef org::xmlBlaster::util::I_LogFactory::PropMap PropMap
typedef std::map< std::string,
org::xmlBlaster::util::I_LogFactory * > 

Public Member Functions

 LogManager ()
 Initializes logging and Properties.
virtual ~LogManager ()
void initialize (const PropMap &propMap)
 Should be called directly after the constructor.
I_LogFactorygetLogFactory (const std::string &name="DEFAULT") const
 Return the current LogFactory implementation.
void setLogFactory (const std::string &name, I_LogFactory *logFactory)
 Add your own LogFactory implementation.

Detailed Description

Manages the logging framework.

The logManager uses xmlBlasters own logging functionality as a default setting. You can change this and add your own logging library by providing your implementation of I_LogFactory.

Marcel Ruff

Definition at line 31 of file LogManager.h.

Member Typedef Documentation

typedef org::xmlBlaster::util::I_LogFactory::PropMap org::xmlBlaster::util::LogManager::PropMap

Definition at line 34 of file LogManager.h.

typedef std::map<std::string, org::xmlBlaster::util::I_LogFactory *> org::xmlBlaster::util::LogManager::LogFactoryMap

Definition at line 35 of file LogManager.h.

Constructor & Destructor Documentation

org::xmlBlaster::util::LogManager::LogManager (  ) 

Initializes logging and Properties.

Definition at line 20 of file LogManager.cpp.

org::xmlBlaster::util::LogManager::~LogManager (  )  [virtual]

Definition at line 24 of file LogManager.cpp.

Member Function Documentation

void org::xmlBlaster::util::LogManager::initialize ( const PropMap propMap  ) 

Should be called directly after the constructor.

I_LogFactory& org::xmlBlaster::util::LogManager::getLogFactory ( const std::string &  name = "DEFAULT"  )  const

Return the current LogFactory implementation.

name Log implementation name (currently not supported)

void org::xmlBlaster::util::LogManager::setLogFactory ( const std::string &  name,
I_LogFactory logFactory 

Add your own LogFactory implementation.

We will delete it when the LogManager is destroyed or when setLogFactory() is called again.

name Log implementation name (currently not supported, pass "")
logFactory Your factory for your logging framework

The documentation for this class was generated from the following files: