mirror of https://github.com/gabime/spdlog.git
Add preserve_parent_name in async/logger::clone method
... in order to support logical hierarchy of loggers. Imagine you have something like this architecture: Application / Controller / First / Second And you want to have a log messages and understand from witch part it come, after this changes you can do: ``` first_controller_logger = controller_logger.clone("first", true); ``` and you will get in log output something similar to: ``` [2014-10-31 23:46:59.678] [controller.first] [info] Some message ``` What is quite convenient. Actually now you can do it by wrapping clone method, but with my changes it won't require any user's code. Thanks.pull/1449/head
parent
ea5e7182ab
commit
bd74991862
Loading…
Reference in New Issue