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

Method Stop

source/logging/processor.cpp:60–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool Processor::Stop()
61{
62 // Stop logging layout
63 if (_layout && _layout->IsStarted())
64 if (!_layout->Stop())
65 return false;
66
67 // Stop logging filters
68 for (auto& filter : _filters)
69 if (filter && filter->IsStarted())
70 if (!filter->Stop())
71 return false;
72
73 // Stop logging appenders
74 for (auto& appender : _appenders)
75 if (appender && appender->IsStarted())
76 if (!appender->Stop())
77 return false;
78
79 // Stop logging processors
80 for (auto& processor : _processors)
81 if (processor)
82 if (!processor->Stop())
83 return false;
84
85 _started = false;
86
87 return true;
88}
89
90bool Processor::FilterRecord(Record& record)
91{

Callers 1

ShutdownMethod · 0.45

Calls 1

IsStartedMethod · 0.45

Tested by

no test coverage detected