1 #ifndef BLUB_LOG_LOGGER_HPP
2 #define BLUB_LOG_LOGGER_HPP
4 #include "blub/core/globals.hpp"
6 #include <boost/log/sources/severity_logger.hpp>
7 #include <boost/log/sources/record_ostream.hpp>
23 inline std::ostream& operator<< (std::ostream& strm, blub::log::severity severity_)
25 static const char* strings[] =
31 std::size_t castedLevel(static_cast< std::size_t >(severity_));
32 if (castedLevel <
sizeof(strings) /
sizeof(*strings))
34 strm << strings[castedLevel];
44 class logger :
public boost::log::sources::severity_logger_mt<blub::log::severity>
47 typedef boost::log::sources::severity_logger_mt<blub::log::severity> t_base;
56 #endif // BLUB_LOG_LOGGER_HPP
Definition: string.hpp:22
Definition: logger.hpp:44
Definition: deadlineTimer.hpp:10