CppLogging 1.0.5.0
C++ Logging Library
Loading...
Searching...
No Matches
sync_processor.cpp
Go to the documentation of this file.
1
10
11namespace 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.
virtual void Flush()
Flush the current logging processor.
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.