aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/stream.h
blob: feb240afcbddcfb35494a63902952a23668ed7c3 (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_;
};