Tinman  1.0
log.h
Go to the documentation of this file.
1 #ifndef LOG_H
2 #define LOG_H
3 
4 #include <boost/log/trivial.hpp>
5 #include <boost/move/utility.hpp>
6 #include <boost/log/sources/logger.hpp>
7 #include <boost/log/sources/record_ostream.hpp>
8 #include <boost/log/sources/severity_feature.hpp>
9 #include <boost/log/sources/severity_logger.hpp>
10 #include <boost/log/sources/global_logger_storage.hpp>
11 #include <boost/log/utility/setup/file.hpp>
12 #include <boost/log/utility/setup/common_attributes.hpp>
13 #include <boost/log/sinks/sync_frontend.hpp>
14 
16 
18  boost::log::sources::severity_logger_mt<severity_level>)
19 
20 class Log {
21  typedef boost::shared_ptr
22  <boost::log::v2_mt_posix::sinks::synchronous_sink
23  <boost::log::v2_mt_posix::sinks::text_file_backend>> SynchronousSink;
24 
25  SynchronousSink log_handler;
26 
27 public:
28  Log();
29  void flush();
30  void add_filter();
31 };
32 
33 
34 #endif
Definition: log.h:15
Definition: log.h:15
Definition: log.h:15
Definition: log.h:15
severity_level
Definition: log.h:15
Definition: log.h:15
BOOST_LOG_INLINE_GLOBAL_LOGGER_DEFAULT(my_logger, boost::log::sources::severity_logger_mt< severity_level >) class Log
Definition: log.h:17