diff options
author | bixind <bixind@yandex-team.ru> | 2022-02-10 16:50:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:12 +0300 |
commit | f2f03a1ea0c5413acb624a532384109a1517130d (patch) | |
tree | 90b98b3eb5a62a4ee7109c2ab9bd99d5fdc836a6 /library/cpp/logger/rotating_file.h | |
parent | 6ef3852e01d65430e2c0e50b3e646bd1ea019847 (diff) | |
download | ydb-f2f03a1ea0c5413acb624a532384109a1517130d.tar.gz |
Restoring authorship annotation for <bixind@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/rotating_file.h')
-rw-r--r-- | library/cpp/logger/rotating_file.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/logger/rotating_file.h b/library/cpp/logger/rotating_file.h index cb047f25fb..dd585c4361 100644 --- a/library/cpp/logger/rotating_file.h +++ b/library/cpp/logger/rotating_file.h @@ -1,20 +1,20 @@ -#pragma once - -#include "backend.h" - +#pragma once + +#include "backend.h" + #include <util/generic/fwd.h> -#include <util/generic/ptr.h> - -class TRotatingFileLogBackend: public TLogBackend { -public: - TRotatingFileLogBackend(const TString& preRotatePath, const TString& postRotatePath, const ui64 maxSizeBytes); +#include <util/generic/ptr.h> + +class TRotatingFileLogBackend: public TLogBackend { +public: + TRotatingFileLogBackend(const TString& preRotatePath, const TString& postRotatePath, const ui64 maxSizeBytes); TRotatingFileLogBackend(const TString& path, const ui64 maxSizeBytes, const ui32 rotatedFilesCount); - ~TRotatingFileLogBackend() override; - - void WriteData(const TLogRecord& rec) override; - void ReopenLog() override; - -private: - class TImpl; - TAtomicSharedPtr<TImpl> Impl_; -}; + ~TRotatingFileLogBackend() override; + + void WriteData(const TLogRecord& rec) override; + void ReopenLog() override; + +private: + class TImpl; + TAtomicSharedPtr<TImpl> Impl_; +}; |