29 mListeners.push_back(_lestener);
34 for (VectorLogListeners::iterator listener = mListeners.begin(); listener != mListeners.end(); ++listener)
40 for (VectorLogListeners::iterator listener = mListeners.begin(); listener != mListeners.end(); ++listener)
46 for (VectorLogListeners::iterator listener = mListeners.begin(); listener != mListeners.end(); ++listener)
50 void LogSource::log(
const std::string& _section,
LogLevel _level,
const struct tm* _time,
const std::string& _message,
const char* _file,
int _line)
52 if (mFilter !=
nullptr)
54 if (!mFilter->
shouldLog(_section, _level, _time, _message, _file, _line))
58 for (VectorLogListeners::iterator listener = mListeners.begin(); listener != mListeners.end(); ++listener)
59 (*listener)->log(_section, _level, _time, _message, _file, _line);