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

#include <library/cpp/logger/backend_creator.h>
#include <library/cpp/config/config.h>

class TLogBackendCreatorInitContextConfig : public ILogBackendCreator::IInitContext {
public:
    TLogBackendCreatorInitContextConfig(const NConfig::TConfig& config);
    virtual bool GetValue(TStringBuf name, TString& var) const override;
    virtual TVector<THolder<IInitContext>> GetChildren(TStringBuf name) const override;

private:
    const NConfig::TConfig& Config;
};