Cleanup base/MQ.

This commit is contained in:
Alexey Rybalchenko
2017-09-01 10:00:05 +02:00
committed by Mohammad Al-Turany
parent 334b91785b
commit 70e46a0b86
16 changed files with 81 additions and 38 deletions

View File

@@ -131,8 +131,8 @@ namespace Logger
void AddFileSink(FunT&& func, Args&&... args)
{
// add a text sink
typedef boost::log::sinks::text_file_backend sink_backend_t;
typedef boost::log::sinks::synchronous_sink<sink_backend_t> sink_t;
using sink_backend_t = boost::log::sinks::text_file_backend;
using sink_t = boost::log::sinks::synchronous_sink<sink_backend_t>;
// forward keywords args for setting log file properties
boost::shared_ptr<sink_backend_t> backend = boost::make_shared<sink_backend_t>(std::forward<Args>(args)...);