17 #ifndef DEFAULTLOGGER_HPP_
18 #define DEFAULTLOGGER_HPP_
21 #include <boost/log/sinks/sync_frontend.hpp>
22 #include <boost/log/sinks/text_ostream_backend.hpp>
23 #include <boost/smart_ptr/shared_ptr.hpp>
32 DefaultLogger(
const std::string& clientId,
const std::string& logFileName = std::string());
34 void log(
LogLevel level,
const char *message)
const;
37 std::string clientId_;
38 using text_sink = boost::log::sinks::synchronous_sink< boost::log::sinks::text_ostream_backend >;
39 boost::shared_ptr< text_sink > pSink_;
void log(LogLevel level, const char *message) const
DefaultLogger(const std::string &clientId, const std::string &logFileName=std::string())