aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/stream.cpp
blob: 96787ad94ba65f987eeeedc3ba95b91a24bdd9b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "stream.h"
#include "record.h"

#include <util/stream/output.h>

TStreamLogBackend::TStreamLogBackend(IOutputStream* slave)
    : Slave_(slave)
{
}

TStreamLogBackend::~TStreamLogBackend() {
}

void TStreamLogBackend::WriteData(const TLogRecord& rec) {
    Slave_->Write(rec.Data, rec.Len);
}

void TStreamLogBackend::ReopenLog() {
}