blob: eae7565a1b51ee1cce614e303235ecbb27d953f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "composite.h"
#include "uninitialized_creator.h"
void TCompositeLogBackend::WriteData(const TLogRecord& rec) {
for (auto& slave: Slaves) {
slave->WriteData(rec);
}
}
void TCompositeLogBackend::ReopenLog() {
for (auto& slave : Slaves) {
slave->ReopenLog();
}
}
void TCompositeLogBackend::AddLogBackend(THolder<TLogBackend>&& backend) {
LogPriority = Max(LogPriority, backend->FiltrationLevel());
Slaves.emplace_back(std::move(backend));
}
|