diff options
| author | iddqd <[email protected]> | 2022-02-10 16:49:46 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:46 +0300 |
| commit | ff241e1daf76d79ed38015cdb76d55eb3a33ac27 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger/init_context/yconf.cpp | |
| parent | 07fce9c5f7771600d0b3d70e1f88fd8a7e164d85 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/init_context/yconf.cpp')
| -rw-r--r-- | library/cpp/logger/init_context/yconf.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/logger/init_context/yconf.cpp b/library/cpp/logger/init_context/yconf.cpp index 5a7a7d25009..c7da1d607cb 100644 --- a/library/cpp/logger/init_context/yconf.cpp +++ b/library/cpp/logger/init_context/yconf.cpp @@ -1,18 +1,18 @@ -#include "yconf.h" - -TLogBackendCreatorInitContextYConf::TLogBackendCreatorInitContextYConf(const TYandexConfig::Section& section) - : Section(section) -{} - -bool TLogBackendCreatorInitContextYConf::GetValue(TStringBuf name, TString& var) const { - return Section.GetDirectives().GetValue(name, var); -} - -TVector<THolder<ILogBackendCreator::IInitContext>> TLogBackendCreatorInitContextYConf::GetChildren(TStringBuf name) const { - TVector<THolder<IInitContext>> result; - auto children = Section.GetAllChildren(); - for (auto range = children.equal_range(TCiString(name)); range.first != range.second; ++range.first) { - result.emplace_back(MakeHolder<TLogBackendCreatorInitContextYConf>(*range.first->second)); - } - return result; -} +#include "yconf.h" + +TLogBackendCreatorInitContextYConf::TLogBackendCreatorInitContextYConf(const TYandexConfig::Section& section) + : Section(section) +{} + +bool TLogBackendCreatorInitContextYConf::GetValue(TStringBuf name, TString& var) const { + return Section.GetDirectives().GetValue(name, var); +} + +TVector<THolder<ILogBackendCreator::IInitContext>> TLogBackendCreatorInitContextYConf::GetChildren(TStringBuf name) const { + TVector<THolder<IInitContext>> result; + auto children = Section.GetAllChildren(); + for (auto range = children.equal_range(TCiString(name)); range.first != range.second; ++range.first) { + result.emplace_back(MakeHolder<TLogBackendCreatorInitContextYConf>(*range.first->second)); + } + return result; +} |
