| 58 | } |
| 59 | |
| 60 | bool 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 | |
| 90 | bool Processor::FilterRecord(Record& record) |
| 91 | { |