Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13594: init_from_settings does not allow repeated calls
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-06-13 10:24:38
#13594: init_from_settings does not allow repeated calls
-------------------------------+-----------------------------
Reporter: PieterB@⦠| Owner: Andrey Semashev
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.67.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------------
Comment (by Andrey Semashev):
The current behavior is by design as the library does not discriminate
between sinks added by init_from_settings or by the user manually.
Removing all sinks from init_from_settings would remove sinks that might
not have been added by that call previously, which is not quite the
expected behavior either.
Calling remove_all_sinks from the application does remove all sinks, so if
that is what you want then this is the way to go. The only other thing
init_from_settings does is configuration of the logging core by setting
the global filter and enabling/disabling logging completely, which
replaces the previous configuration.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13594#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-06-13 10:29:18 UTC