From d8e48c32f8435076382543edfafbf81c223f9e87 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 10 Oct 2016 15:52:14 +0200 Subject: Added a Client so we can start finishing up the setup phase of cMix. --- liblog/logging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liblog/logging.cpp') diff --git a/liblog/logging.cpp b/liblog/logging.cpp index 6bbf070..ecc9ae5 100644 --- a/liblog/logging.cpp +++ b/liblog/logging.cpp @@ -9,14 +9,14 @@ #include #include -void init_logging(boost::log::trivial::severity_level log_level) +void init_logging(boost::log::trivial::severity_level log_level, std::string file_name) { boost::log::add_common_attributes(); boost::log::register_simple_formatter_factory< boost::log::trivial::severity_level, char >("Severity"); boost::log::add_file_log ( - boost::log::keywords::file_name = "node%N.log", + boost::log::keywords::file_name = file_name + "%N.log", boost::log::keywords::rotation_size = 10 * 1024 * 1024, boost::log::keywords::format = "[%Severity%] (%TimeStamp%): %Message%", boost::log::keywords::auto_flush = true -- cgit v1.2.3-70-g09d2