Logger factory.
More...
#include <loggerFactory.hpp>
|
|
class | anch::Singleton< LoggerFactory > |
Logger factory.
This class aims to manage logger according to the loggers name and configuration.
- Since
- 0.1
- Author
- Vincent Lachenal
◆ getLogger()
| const anch::log::Logger & anch::log::LoggerFactory::getLogger |
( |
std::string_view | loggerName | ) |
|
|
static |
Retrieve a registered logger from a logger name or create a new one and register it.
Thread safe. The returned reference is valid until program exit.
The name is a std::string_view : with a reference parameter, GCC 13 reports a possibly dangling reference (-Wdangling-reference ) when the name is a temporary, as a string literal.
- Parameters
-
| loggerName | The logger name to retrieve |
- Returns
- The loggerr instance
The documentation for this class was generated from the following file: