9 #ifndef CPPLOGGING_PROCESSOR_H
10 #define CPPLOGGING_PROCESSOR_H
61 bool Start()
override;
Logging appenders definition.
Logging element interface.
Logging layout interface.
Logging processor interface.
std::vector< std::shared_ptr< Appender > > _appenders
Processor(const std::shared_ptr< Layout > &layout)
Initialize logging processor with a given layout interface.
std::shared_ptr< Layout > _layout
bool IsStarted() const noexcept override
Is the logging processor started?
bool Stop() override
Stop the logging processor.
Processor(Processor &&) noexcept=delete
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() noexcept
Get collection of child processors.
std::vector< std::shared_ptr< Processor > > _processors
virtual void Flush()
Flush the current logging processor.
Processor(const Processor &)=delete
std::vector< std::shared_ptr< Filter > > & filters() noexcept
Get collection of child filters.
std::shared_ptr< Layout > & layout() noexcept
Get the logging processor layout.
std::vector< std::shared_ptr< Appender > > & appenders() noexcept
Get collection of child appenders.
virtual bool FilterRecord(Record &record)
Filter the given logging record.
Logging filters definition.
Logging layouts definition.
C++ Logging project definitions.