MCPcopy Create free account
hub / github.com/chronoxor/CppLogging / ProcessRecord

Method ProcessRecord

source/logging/processor.cpp:100–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool Processor::ProcessRecord(Record& record)
101{
102 // Check if the logging processor started
103 if (!IsStarted())
104 return true;
105
106 // Filter the given logging record
107 if (!FilterRecord(record))
108 return true;
109
110 // Layout the given logging record
111 if (_layout && _layout->IsStarted())
112 _layout->LayoutRecord(record);
113
114 // Append the given logging record
115 for (auto& appender : _appenders)
116 if (appender && appender->IsStarted())
117 appender->AppendRecord(record);
118
119 // Process the given logging record with sub processors
120 for (auto& processor : _processors)
121 if (processor && processor->IsStarted() && !processor->ProcessRecord(record))
122 return false;
123
124 return true;
125}
126
127void Processor::Flush()
128{

Callers

nothing calls this directly

Calls 3

IsStartedMethod · 0.45
LayoutRecordMethod · 0.45
AppendRecordMethod · 0.45

Tested by

no test coverage detected