aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/stream.h
blob: 044219ca7f8a5b16e8169c18c7c2ccfa7c002810 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "backend.h"
 
class IOutputStream;

class TStreamLogBackend: public TLogBackend {
public:
    TStreamLogBackend(IOutputStream* slave);
    ~TStreamLogBackend() override;

    void WriteData(const TLogRecord& rec) override;
    void ReopenLog() override;

private:
    IOutputStream* Slave_;
};