aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/init_context/config.h
blob: 579deeb9e4417f538115dd191986fd12d4b67e5b (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; 
};