move log_msg to details namespace

This commit is contained in:
gabime
2014-03-28 19:03:24 +03:00
parent 40acfdfbc2
commit c09df09b9c
10 changed files with 43 additions and 46 deletions

View File

@@ -6,6 +6,7 @@
#include <mutex>
#include "base_sink.h"
#include "../details/flush_helper.h"
#include "../details/blocking_queue.h"
namespace c11log
{
@@ -27,7 +28,7 @@ public:
{
}
protected:
void _sink_it(const log_msg& msg) override
void _sink_it(const details::log_msg& msg) override
{
std::lock_guard<std::mutex> lock(_mutex);
_flush_helper.write(msg.msg_buf, _ofstream);
@@ -60,7 +61,7 @@ public:
}
protected:
void _sink_it(const log_msg& msg) override
void _sink_it(const details::log_msg& msg) override
{
std::lock_guard<std::mutex> lock(_mutex);
@@ -134,7 +135,7 @@ public:
}
protected:
void _sink_it(const log_msg& msg) override
void _sink_it(const details::log_msg& msg) override
{
std::lock_guard<std::mutex> lock(_mutex);
if (std::chrono::system_clock::now() >= _midnight_tp)