blob: 091b07c78f1822bd559345e10669836b1e2d1d7a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "fwd_backend.h"
namespace NYql::NLog {
TForwardingLogBackend::TForwardingLogBackend(TAutoPtr<TLogBackend> child)
: Child_(std::move(child))
{
}
void TForwardingLogBackend::WriteData(const TLogRecord& rec) {
return Child_->WriteData(rec);
}
void TForwardingLogBackend::ReopenLog() {
return Child_->ReopenLog();
}
void TForwardingLogBackend::ReopenLogNoFlush() {
return Child_->ReopenLogNoFlush();
}
ELogPriority TForwardingLogBackend::FiltrationLevel() const {
return Child_->FiltrationLevel();
}
size_t TForwardingLogBackend::QueueSize() const {
return Child_->QueueSize();
}
void TForwardingLogBackend::SetChild(TAutoPtr<TLogBackend> child) {
Child_ = std::move(child);
}
TAutoPtr<TLogBackend> TForwardingLogBackend::GetChild() const {
return Child_;
}
} // namespace NYql::NLog
|