30 LogHandlerMap::const_iterator it = m_logHandlers.begin();
31 for( ; it != m_logHandlers.end(); ++it )
33 if( (*it).first && ( (*it).second.level <= level ) && ( (*it).second.areas & area ) )
34 (*it).first->handleLog( level, area, message );
40 LogInfo info = { level, areas };
41 m_logHandlers[lh] = info;
46 m_logHandlers.erase( lh );
A virtual interface which can be reimplemented to receive debug and log messages.
void registerLogHandler(LogLevel level, int areas, LogHandler *lh)
void removeLogHandler(LogHandler *lh)
void log(LogLevel level, LogArea area, const std::string &message) const
The namespace for the gloox library.