Boost logo

Boost Users :

Subject: [Boost-users] Log: Overwrite format of sink
From: Florian Lindner (mailinglists_at_[hidden])
Date: 2015-08-14 07:47:50


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");

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...


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at