9 #ifndef CPPLOGGING_PROCESSORS_SYNC_PROCESSOR_H
10 #define CPPLOGGING_PROCESSORS_SYNC_PROCESSOR_H
14 #include "threads/critical_section.h"
43 void Flush()
override;
46 CppCommon::CriticalSection _lock;
Logging processor interface.
std::shared_ptr< Layout > & layout() noexcept
Get the logging processor layout.
Synchronous logging processor.
void Flush() override
Flush the current logging processor.
bool ProcessRecord(Record &record) override
Process the given logging record through all child filters, layouts and appenders.
SyncProcessor & operator=(const SyncProcessor &)=delete
SyncProcessor(SyncProcessor &&)=delete
SyncProcessor & operator=(SyncProcessor &&)=delete
SyncProcessor(const SyncProcessor &)=delete
virtual ~SyncProcessor()=default
SyncProcessor(const std::shared_ptr< Layout > &layout)
Initialize synchronous logging processor with a given layout interface.
C++ Logging project definitions.
Logging processor interface definition.