diff options
author | iddqd <iddqd@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
commit | 07fce9c5f7771600d0b3d70e1f88fd8a7e164d85 (patch) | |
tree | e4aa4750fbb864d70f8c06cf03d2750e979ea3bf /library/cpp/logger/file_creator.cpp | |
parent | af42068bf6cd93c976b80dd0388fa48cdf65da11 (diff) | |
download | ydb-07fce9c5f7771600d0b3d70e1f88fd8a7e164d85.tar.gz |
Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/file_creator.cpp')
-rw-r--r-- | library/cpp/logger/file_creator.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/logger/file_creator.cpp b/library/cpp/logger/file_creator.cpp index 0a84469e43..2807171017 100644 --- a/library/cpp/logger/file_creator.cpp +++ b/library/cpp/logger/file_creator.cpp @@ -1,22 +1,22 @@ -#include "file_creator.h" -#include "file.h" - -TFileLogBackendCreator::TFileLogBackendCreator(const TString& path /*= TString()*/, const TString& type /*= "file"*/) - : TLogBackendCreatorBase(type) - , Path(path) -{} - -THolder<TLogBackend> TFileLogBackendCreator::DoCreateLogBackend() const { - return MakeHolder<TFileLogBackend>(Path); -} - -bool TFileLogBackendCreator::Init(const IInitContext& ctx) { - ctx.GetValue("Path", Path); - return !!Path; -} - -ILogBackendCreator::TFactory::TRegistrator<TFileLogBackendCreator> TFileLogBackendCreator::Registrar("file"); - -void TFileLogBackendCreator::DoToJson(NJson::TJsonValue& value) const { - value["Path"] = Path; -} +#include "file_creator.h" +#include "file.h" + +TFileLogBackendCreator::TFileLogBackendCreator(const TString& path /*= TString()*/, const TString& type /*= "file"*/) + : TLogBackendCreatorBase(type) + , Path(path) +{} + +THolder<TLogBackend> TFileLogBackendCreator::DoCreateLogBackend() const { + return MakeHolder<TFileLogBackend>(Path); +} + +bool TFileLogBackendCreator::Init(const IInitContext& ctx) { + ctx.GetValue("Path", Path); + return !!Path; +} + +ILogBackendCreator::TFactory::TRegistrator<TFileLogBackendCreator> TFileLogBackendCreator::Registrar("file"); + +void TFileLogBackendCreator::DoToJson(NJson::TJsonValue& value) const { + value["Path"] = Path; +} |