file.h 373 B

12345678910111213141516171819
  1. #pragma once
  2. #include "backend.h"
  3. #include <util/generic/fwd.h>
  4. #include <util/generic/ptr.h>
  5. class TFileLogBackend: public TLogBackend {
  6. public:
  7. TFileLogBackend(const TString& path);
  8. ~TFileLogBackend() override;
  9. void WriteData(const TLogRecord& rec) override;
  10. void ReopenLog() override;
  11. private:
  12. class TImpl;
  13. TAtomicSharedPtr<TImpl> Impl_;
  14. };