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

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

class TCompositeBackendCreator : public TLogBackendCreatorBase {
public:
    TCompositeBackendCreator();
    virtual bool Init(const IInitContext& ctx) override;
    static TFactory::TRegistrator<TCompositeBackendCreator> Registrar;

protected:
    virtual void DoToJson(NJson::TJsonValue& value) const override;

private:
    virtual THolder<TLogBackend> DoCreateLogBackend() const override;
    TVector<THolder<ILogBackendCreator>> Children;
};