CppLogging  1.0.4.0
C++ Logging Library
sync_processor.cpp
Go to the documentation of this file.
1 
10 
11 namespace CppLogging {
12 
14 {
15  CppCommon::Locker<CppCommon::CriticalSection> locker(_lock);
16 
17  // Process the given logging record under the critical section lock
18  return Processor::ProcessRecord(record);
19 }
20 
22 {
23  CppCommon::Locker<CppCommon::CriticalSection> locker(_lock);
24 
25  // Flush under the critical section lock
26  return Processor::Flush();
27 }
28 
29 } // namespace CppLogging
virtual bool ProcessRecord(Record &record)
Process the given logging record through all child filters, layouts and appenders.
Definition: processor.cpp:100
virtual void Flush()
Flush the current logging processor.
Definition: processor.cpp:127
Logging record.
Definition: record.h:37
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.
C++ Logging project definitions.
Definition: appender.h:15
Synchronous logging processor definition.