Logger writers' registry.
More...
#include <writerRegistry.hpp>
Logger writers' registry.
Global logger writers' registry
- Author
- Vincent Lachenal
- Since
- 0.1
◆ WriterRegistry() [1/2]
| anch::log::WriterRegistry::WriterRegistry |
( |
const WriterRegistry & | other | ) |
|
|
delete |
◆ WriterRegistry() [2/2]
| anch::log::WriterRegistry::WriterRegistry |
( |
WriterRegistry && | other | ) |
|
|
delete |
◆ contains()
| bool anch::log::WriterRegistry::contains |
( |
const std::string & | name | ) |
const |
Check if a writer's name has been registered
- Parameters
-
| name | the writer name to check |
- Returns
true when writer has been registered, false otherwise
◆ create()
| anch::log::Writer * anch::log::WriterRegistry::create |
( |
const std::string & | name, |
|
|
bool | threadSafe, |
|
|
bool | lowPriority, |
|
|
const anch::conf::Section & | section ) |
Create new writer instance
- Parameters
-
| name | the writer's name |
| threadSafe | default thread safe flag |
| lowPriority | default low priority flag |
| section | the writer section |
- Returns
- the new writer
◆ registerWriter()
| void anch::log::WriterRegistry::registerWriter |
( |
const std::string & | name, |
|
|
const anch::log::CreateWriter & | writerBuilder ) |
Register writer
- Parameters
-
| name | the writer's name |
| writerBuilder | the wrtier builder function |
The documentation for this class was generated from the following file: