#pragma once #include "backend.h" #include #include 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 Impl_; };