aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/log_backend/actor_log_backend.h
blob: a51427d498d98862c10a275494eb925cad64076a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include <library/cpp/logger/backend.h>

namespace NActors {
class TActorSystem;
} // namespace NActors

class TActorLogBackend : public TLogBackend {
public:
    TActorLogBackend(NActors::TActorSystem* actorSystem, int logComponent);

    void WriteData(const TLogRecord& rec) override;

    void ReopenLog() override {
    }

private:
    NActors::TActorSystem* const ActorSystem;
    const int LogComponent;
};