blob: 3ce0154ced473721b66542e02d79628b40cc7a2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#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) {
Slaves.emplace_back(std::move(backend));
}
|