diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-10 15:52:14 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-10 15:52:14 +0200 |
| commit | d8e48c32f8435076382543edfafbf81c223f9e87 (patch) | |
| tree | 575f0f7f452c4c8800e77c7fd79b4354fed8a81c /liblog | |
| parent | fa35c9c3c71243a7f8537e5a81f7a09fa05a382e (diff) | |
| download | cmix-d8e48c32f8435076382543edfafbf81c223f9e87.tar.gz cmix-d8e48c32f8435076382543edfafbf81c223f9e87.tar.bz2 cmix-d8e48c32f8435076382543edfafbf81c223f9e87.zip | |
Added a Client so we can start finishing up the setup phase of cMix.
Diffstat (limited to 'liblog')
| -rw-r--r-- | liblog/logging.cpp | 4 | ||||
| -rw-r--r-- | liblog/logging.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
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 <boost/log/sources/severity_logger.hpp> #include <boost/log/sources/record_ostream.hpp> -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 diff --git a/liblog/logging.hpp b/liblog/logging.hpp index b06d176..b95ca64 100644 --- a/liblog/logging.hpp +++ b/liblog/logging.hpp @@ -10,5 +10,5 @@ * \brief init_logging Initializes the logging system to log to file. * \param log_level minimum log level we are interested in. */ -void init_logging(boost::log::trivial::severity_level log_level); +void init_logging(boost::log::trivial::severity_level log_level, std::string file_name = "log"); |
