17 if (appender && appender->IsStarted())
22 if (processor && processor->IsStarted())
39 if (filter && !filter->IsStarted())
45 if (appender && !appender->IsStarted())
46 if (!appender->Start())
52 if (!processor->Start())
69 if (filter && filter->IsStarted())
75 if (appender && appender->IsStarted())
76 if (!appender->Stop())
82 if (!processor->Stop())
94 if (filter && filter->IsStarted() && !filter->FilterRecord(record))
116 if (appender && appender->IsStarted())
117 appender->AppendRecord(record);
121 if (processor && processor->IsStarted() && !processor->ProcessRecord(record))
135 if (appender && appender->IsStarted())
140 if (processor && processor->IsStarted())
std::vector< std::shared_ptr< Appender > > _appenders
std::shared_ptr< Layout > _layout
bool IsStarted() const noexcept override
Is the logging processor started?
bool Stop() override
Stop the logging processor.
virtual bool ProcessRecord(Record &record)
Process the given logging record through all child filters, layouts and appenders.
bool Start() override
Start the logging processor.
std::atomic< bool > _started
std::vector< std::shared_ptr< Filter > > _filters
std::vector< std::shared_ptr< Processor > > _processors
virtual void Flush()
Flush the current logging processor.
virtual bool FilterRecord(Record &record)
Filter the given logging record.
C++ Logging project definitions.
Logging processor interface definition.