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

Public Types | |
| typedef org::xmlBlaster::util::I_LogFactory::PropMap | PropMap |
| typedef std::map< std::string, org::xmlBlaster::util::I_LogFactory * > | LogFactoryMap |
Public Member Functions | |
| LogManager () | |
| Initializes logging and Properties. | |
| virtual | ~LogManager () |
| void | initialize (const PropMap &propMap) |
| Should be called directly after the constructor. | |
| I_LogFactory & | getLogFactory (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. | |
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.
Definition at line 31 of file LogManager.h.
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.
| org::xmlBlaster::util::LogManager::LogManager | ( | ) |
| org::xmlBlaster::util::LogManager::~LogManager | ( | ) | [virtual] |
Definition at line 24 of file LogManager.cpp.
| 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 |