diff options
| author | qrort <[email protected]> | 2022-12-02 11:31:25 +0300 |
|---|---|---|
| committer | qrort <[email protected]> | 2022-12-02 11:31:25 +0300 |
| commit | b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806 (patch) | |
| tree | 2a23209faf0fea5586a6d4b9cee60d1b318d29fe /library/cpp/actors | |
| parent | 559174a9144de40d6bb3997ea4073c82289b4974 (diff) | |
remove kikimr/driver DEPENDS
Diffstat (limited to 'library/cpp/actors')
| -rw-r--r-- | library/cpp/actors/log_backend/actor_log_backend.cpp | 42 | ||||
| -rw-r--r-- | library/cpp/actors/log_backend/actor_log_backend.h | 20 |
2 files changed, 0 insertions, 62 deletions
diff --git a/library/cpp/actors/log_backend/actor_log_backend.cpp b/library/cpp/actors/log_backend/actor_log_backend.cpp deleted file mode 100644 index a6fdd20c7b4..00000000000 --- a/library/cpp/actors/log_backend/actor_log_backend.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "actor_log_backend.h" - -#include <library/cpp/actors/core/actorsystem.h> -#include <library/cpp/actors/core/log.h> -#include <library/cpp/logger/record.h> - -namespace { - -NActors::NLog::EPriority GetActorLogPriority(ELogPriority priority) { - switch (priority) { - case TLOG_EMERG: - return NActors::NLog::PRI_EMERG; - case TLOG_ALERT: - return NActors::NLog::PRI_ALERT; - case TLOG_CRIT: - return NActors::NLog::PRI_CRIT; - case TLOG_ERR: - return NActors::NLog::PRI_ERROR; - case TLOG_WARNING: - return NActors::NLog::PRI_WARN; - case TLOG_NOTICE: - return NActors::NLog::PRI_NOTICE; - case TLOG_INFO: - return NActors::NLog::PRI_INFO; - case TLOG_DEBUG: - return NActors::NLog::PRI_DEBUG; - default: - return NActors::NLog::PRI_TRACE; - } -} - -} - -TActorLogBackend::TActorLogBackend(NActors::TActorSystem* actorSystem, int logComponent) - : ActorSystem(actorSystem) - , LogComponent(logComponent) -{ -} - -void TActorLogBackend::WriteData(const TLogRecord& rec) { - LOG_LOG(*ActorSystem, GetActorLogPriority(rec.Priority), LogComponent, TString(rec.Data, rec.Len)); -} diff --git a/library/cpp/actors/log_backend/actor_log_backend.h b/library/cpp/actors/log_backend/actor_log_backend.h deleted file mode 100644 index a51427d498d..00000000000 --- a/library/cpp/actors/log_backend/actor_log_backend.h +++ /dev/null @@ -1,20 +0,0 @@ -#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; -}; |
