actor_log_backend.h 427 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <library/cpp/logger/backend.h>
  3. namespace NActors {
  4. class TActorSystem;
  5. } // namespace NActors
  6. class TActorLogBackend : public TLogBackend {
  7. public:
  8. TActorLogBackend(NActors::TActorSystem* actorSystem, int logComponent);
  9. void WriteData(const TLogRecord& rec) override;
  10. void ReopenLog() override {
  11. }
  12. private:
  13. NActors::TActorSystem* const ActorSystem;
  14. const int LogComponent;
  15. };