Atomically replaces the default logger.
More...
#include <userver/logging/log.hpp>
Atomically replaces the default logger.
- Warning
- Do not use this class if you are using a component system.
Definition at line 38 of file log.hpp.
◆ DefaultLoggerGuard()
logging::DefaultLoggerGuard::DefaultLoggerGuard |
( |
LoggerPtr |
new_default_logger | ) |
|
|
explicitnoexcept |
Atomically replaces the default logger.
- Warning
- The logger should live as long as someone is using it. Generally speaking - it should live for a lifetime of the application, or for a lifetime of the coroutine engine.
The documentation for this class was generated from the following file: