diff options
author | iddqd <iddqd@yandex-team.ru> | 2022-02-10 16:49:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:46 +0300 |
commit | ff241e1daf76d79ed38015cdb76d55eb3a33ac27 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger/stream_creator.cpp | |
parent | 07fce9c5f7771600d0b3d70e1f88fd8a7e164d85 (diff) | |
download | ydb-ff241e1daf76d79ed38015cdb76d55eb3a33ac27.tar.gz |
Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/stream_creator.cpp')
-rw-r--r-- | library/cpp/logger/stream_creator.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/library/cpp/logger/stream_creator.cpp b/library/cpp/logger/stream_creator.cpp index fafdcfbfb3..6246f9bf9c 100644 --- a/library/cpp/logger/stream_creator.cpp +++ b/library/cpp/logger/stream_creator.cpp @@ -1,32 +1,32 @@ -#include "stream_creator.h" -#include "stream.h" - -THolder<TLogBackend> TCerrLogBackendCreator::DoCreateLogBackend() const { - return MakeHolder<TStreamLogBackend>(&Cerr); -} - - -TCerrLogBackendCreator::TCerrLogBackendCreator() - : TLogBackendCreatorBase("cerr") -{} - -void TCerrLogBackendCreator::DoToJson(NJson::TJsonValue& /*value*/) const { -} - -ILogBackendCreator::TFactory::TRegistrator<TCerrLogBackendCreator> TCerrLogBackendCreator::RegistrarCerr("cerr"); -ILogBackendCreator::TFactory::TRegistrator<TCerrLogBackendCreator> TCerrLogBackendCreator::RegistrarConsole("console"); - - -THolder<TLogBackend> TCoutLogBackendCreator::DoCreateLogBackend() const { - return MakeHolder<TStreamLogBackend>(&Cout); -} - - -TCoutLogBackendCreator::TCoutLogBackendCreator() - : TLogBackendCreatorBase("cout") -{} - -ILogBackendCreator::TFactory::TRegistrator<TCoutLogBackendCreator> TCoutLogBackendCreator::Registrar("cout"); - -void TCoutLogBackendCreator::DoToJson(NJson::TJsonValue& /*value*/) const { -} +#include "stream_creator.h" +#include "stream.h" + +THolder<TLogBackend> TCerrLogBackendCreator::DoCreateLogBackend() const { + return MakeHolder<TStreamLogBackend>(&Cerr); +} + + +TCerrLogBackendCreator::TCerrLogBackendCreator() + : TLogBackendCreatorBase("cerr") +{} + +void TCerrLogBackendCreator::DoToJson(NJson::TJsonValue& /*value*/) const { +} + +ILogBackendCreator::TFactory::TRegistrator<TCerrLogBackendCreator> TCerrLogBackendCreator::RegistrarCerr("cerr"); +ILogBackendCreator::TFactory::TRegistrator<TCerrLogBackendCreator> TCerrLogBackendCreator::RegistrarConsole("console"); + + +THolder<TLogBackend> TCoutLogBackendCreator::DoCreateLogBackend() const { + return MakeHolder<TStreamLogBackend>(&Cout); +} + + +TCoutLogBackendCreator::TCoutLogBackendCreator() + : TLogBackendCreatorBase("cout") +{} + +ILogBackendCreator::TFactory::TRegistrator<TCoutLogBackendCreator> TCoutLogBackendCreator::Registrar("cout"); + +void TCoutLogBackendCreator::DoToJson(NJson::TJsonValue& /*value*/) const { +} |