mirror of https://github.com/gabime/spdlog.git
Don't force Mongo sink to own MongoCXX instance
There can only be one instance in the whole program, so programs that use the Mongo sink and also separately use MongoCXX may have problems if the Mongo sink owns the instance. MongoCXX recommends that the main application manage its own instance so configuration parameters can be passed to the constructor: http://mongocxx.org/api/current/classmongocxx_1_1instance.html However, this commit is not a breaking change. If no instance has been created at construction time, the Mongo sink will still create and own the instance.pull/2519/head
parent
0145223be1
commit
a3c47cc682
Loading…
Reference in New Issue