moved to log_msg

This commit is contained in:
gabime
2014-03-28 16:05:09 +03:00
parent 0b2bd0fc73
commit f909caf38b
11 changed files with 118 additions and 87 deletions

View File

@@ -19,10 +19,10 @@ public:
virtual ~console_sink() = default;
protected:
virtual void _sink_it(const bufpair_t& msg) override
virtual void _sink_it(const log_msg& msg) override
{
std::lock_guard<std::mutex> lock(_mutex);
_ostream.write(msg.first, msg.second);
_ostream.write(msg.msg_buf.first, msg.msg_buf.second);
}
std::ostream& _ostream;