aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/init_context/yconf.h
blob: 574cb617ef1d8c430ab2b82a9055f87942aa01cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once 
 
#include <library/cpp/logger/backend_creator.h> 
#include <library/cpp/yconf/conf.h> 
 
class TLogBackendCreatorInitContextYConf: public ILogBackendCreator::IInitContext { 
public: 
    TLogBackendCreatorInitContextYConf(const TYandexConfig::Section& section); 
    virtual bool GetValue(TStringBuf name, TString& var) const override; 
    virtual TVector<THolder<IInitContext>> GetChildren(TStringBuf name) const override; 
private: 
    const TYandexConfig::Section& Section; 
};