aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/stream.cpp
blob: 5cd114bc83546d38f6185ebbbd94cfb125fa171a (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() { 
}