logging: add a LogConfig::update() method
authorAdam Simpkins <simpkins@fb.com>
Thu, 30 Nov 2017 01:35:21 +0000 (17:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 30 Nov 2017 01:51:07 +0000 (17:51 -0800)
commit153c4233eff35be3bd9728c969bd22f59ac6051b
tree9b920ef73fb5d6c15c8b6b3fdea7eb562387a8c2
parentb26334e5f85126a4ebe1c514d4790b98f2c2bbe1
logging: add a LogConfig::update() method

Summary:
Add a method for merging the settings from two LogConfig objects.
This allows LogConfig objects to be merged before applying them to the
LoggerDB.  The effects are the same as two sequential LoggerDB::updateConfig()
calls, but without having to apply the intermediate state to the LoggerDB.

Reviewed By: bolinfest

Differential Revision: D6342085

fbshipit-source-id: 0f8a1b7d8d195a80bc74342444dd3152d331fcb6
folly/experimental/logging/LogConfig.cpp
folly/experimental/logging/LogConfig.h
folly/experimental/logging/test/ConfigParserTest.cpp