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/rotating_file_creator.h | |
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/rotating_file_creator.h')
-rw-r--r-- | library/cpp/logger/rotating_file_creator.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/logger/rotating_file_creator.h b/library/cpp/logger/rotating_file_creator.h index b2e94584da..ee2e7e6a6c 100644 --- a/library/cpp/logger/rotating_file_creator.h +++ b/library/cpp/logger/rotating_file_creator.h @@ -1,18 +1,18 @@ -#pragma once - -#include "file_creator.h" - -class TRotatingFileLogBackendCreator : public TFileLogBackendCreator { -public: - TRotatingFileLogBackendCreator(); - virtual bool Init(const IInitContext& ctx) override; - static TFactory::TRegistrator<TRotatingFileLogBackendCreator> Registrar; - -protected: - virtual void DoToJson(NJson::TJsonValue& value) const override; - -private: - virtual THolder<TLogBackend> DoCreateLogBackend() const override; - ui64 MaxSizeBytes = Max<ui64>(); - ui64 RotatedFilesCount = Max<ui64>(); -}; +#pragma once + +#include "file_creator.h" + +class TRotatingFileLogBackendCreator : public TFileLogBackendCreator { +public: + TRotatingFileLogBackendCreator(); + virtual bool Init(const IInitContext& ctx) override; + static TFactory::TRegistrator<TRotatingFileLogBackendCreator> Registrar; + +protected: + virtual void DoToJson(NJson::TJsonValue& value) const override; + +private: + virtual THolder<TLogBackend> DoCreateLogBackend() const override; + ui64 MaxSizeBytes = Max<ui64>(); + ui64 RotatedFilesCount = Max<ui64>(); +}; |