aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/composite.h
blob: 142c61b8d5089992f50dc51413a87e6649aca732 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include "backend.h"
#include <util/generic/vector.h>

class TCompositeLogBackend: public TLogBackend {
public:
    virtual void WriteData(const TLogRecord& rec) override;
    virtual void ReopenLog() override;
    virtual void AddLogBackend(THolder<TLogBackend>&& backend);

private:
    TVector<THolder<TLogBackend>> Slaves;
};