/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/logger/rotating_file.h
20 строк
567 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#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); 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_; };