Logging processor interface.
More...
#include <processor.h>
Logging processor interface.
Logging processor takes an instance of a single logging record and process it though all child filters, layouts and appenders.
Not thread-safe.
- See also
- SyncProcessor
-
AsyncProcessor
-
BufferedProcessor
-
ExclusiveProcessor
Definition at line 30 of file processor.h.
◆ Processor() [1/3]
CppLogging::Processor::Processor |
( |
const std::shared_ptr< Layout > & |
layout | ) |
|
|
inlineexplicit |
Initialize logging processor with a given layout interface.
- Parameters
-
layout | - Logging layout interface |
Definition at line 37 of file processor.h.
◆ Processor() [2/3]
CppLogging::Processor::Processor |
( |
const Processor & |
| ) |
|
|
delete |
◆ Processor() [3/3]
CppLogging::Processor::Processor |
( |
Processor && |
| ) |
|
|
deletenoexcept |
◆ ~Processor()
CppLogging::Processor::~Processor |
( |
| ) |
|
|
virtual |
◆ appenders()
std::vector< std::shared_ptr< Appender > > & CppLogging::Processor::appenders |
( |
| ) |
|
|
inlinenoexcept |
Get collection of child appenders.
Definition at line 50 of file processor.h.
◆ FilterRecord()
bool CppLogging::Processor::FilterRecord |
( |
Record & |
record | ) |
|
|
virtual |
Filter the given logging record.
- Parameters
-
- Returns
- 'true' if the logging record should be processed, 'false' if the logging record was filtered out
Definition at line 90 of file processor.cpp.
◆ filters()
std::vector< std::shared_ptr< Filter > > & CppLogging::Processor::filters |
( |
| ) |
|
|
inlinenoexcept |
Get collection of child filters.
Definition at line 48 of file processor.h.
◆ Flush()
void CppLogging::Processor::Flush |
( |
| ) |
|
|
virtual |
◆ IsStarted()
bool CppLogging::Processor::IsStarted |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ layout()
std::shared_ptr< Layout > & CppLogging::Processor::layout |
( |
| ) |
|
|
inlinenoexcept |
Get the logging processor layout.
Definition at line 46 of file processor.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ processors()
std::vector< std::shared_ptr< Processor > > & CppLogging::Processor::processors |
( |
| ) |
|
|
inlinenoexcept |
Get collection of child processors.
Definition at line 52 of file processor.h.
◆ ProcessRecord()
bool CppLogging::Processor::ProcessRecord |
( |
Record & |
record | ) |
|
|
virtual |
◆ Start()
bool CppLogging::Processor::Start |
( |
| ) |
|
|
overridevirtual |
Start the logging processor.
- Returns
- 'true' if the logging processor was successfully started, 'false' if the logging processor failed to start
Reimplemented from CppLogging::Element.
Definition at line 30 of file processor.cpp.
◆ Stop()
bool CppLogging::Processor::Stop |
( |
| ) |
|
|
overridevirtual |
Stop the logging processor.
- Returns
- 'true' if the logging processor was successfully stopped, 'false' if the logging processor failed to stop
Reimplemented from CppLogging::Element.
Definition at line 60 of file processor.cpp.
◆ _appenders
std::vector<std::shared_ptr<Appender> > CppLogging::Processor::_appenders |
|
protected |
◆ _filters
std::vector<std::shared_ptr<Filter> > CppLogging::Processor::_filters |
|
protected |
◆ _layout
std::shared_ptr<Layout> CppLogging::Processor::_layout |
|
protected |
◆ _processors
std::vector<std::shared_ptr<Processor> > CppLogging::Processor::_processors |
|
protected |
◆ _started
std::atomic<bool> CppLogging::Processor::_started {true} |
|
protected |
The documentation for this class was generated from the following files: