7 #include "fwLog/Logger.hpp" 9 #include <boost/foreach.hpp> 55 SLM_ASSERT(
"Please be sure to provide an index lower than the number of items.", index < this->
count());
70 std::size_t
count = 0;
73 if(log.getLevel() == level)
99 return logA.getLevel() > logB.getLevel();
FWLOG_API std::size_t count() const
Returns the number of logs.
FWLOG_API ~Logger()
Destructor.
FWLOG_API Logger()
Constructor.
#define SLM_WARN(message)
FWLOG_API void critical(const std::string &message)
Add critical log into the logger.
fwLog contains classes used to manage logs.
#define SLM_ERROR(message)
FWLOG_API void sort()
Sort logs according to log levels.
static bool logSorter(const ::fwLog::Log &logA, const ::fwLog::Log &logB)
Function used to sort logs.
LogContainerType m_logContainer
Log container.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
FWLOG_API void clear()
Clear logs.
FWLOG_API void information(const std::string &message)
Add information log into the logger.
FWLOG_API void warning(const std::string &message)
Add warning log into the logger.
#define SLM_INFO(message)
FWLOG_API::fwLog::Log getLog(unsigned int index)
Return the log matching the specified index.