|
Boost Users : |
Subject: [Boost-users] Log: Overwrite format of sink
From: Florian Lindner (mailinglists_at_[hidden])
Date: 2015-08-14 07:47:50
Hello,
I have a console sink:
boost::log::add_console_log(std::cout, keywords::format = fmtStream);
with fmtStream being an expressions stream.
After setting up the sinks I load a configuration file:
std::ifstream file("log.settings");
init_from_stream(file);
Is there a way to overwrite the format of this sink from within in the
configuration file. Or, alternatively disable this sink.
What I want to achieve is that a user have the option to modify the format
without having two console outputs...
Thanks,
Florian
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net