Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
standalone_backend.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
5#pragma once
6
8
23
40class standalone_backend : public integration_backend {
41public:
45 standalone_backend() = default;
46
50 ~standalone_backend() override = default;
51
62 log_level normalize_level(int external_level) const override {
63 // Direct cast - assumes external level is already common::interfaces::log_level
64 return static_cast<log_level>(external_level);
65 }
66
73 std::string get_backend_name() const override {
74 return "standalone";
75 }
76
83 bool requires_initialization() const override {
84 return false;
85 }
86};
87
88} // namespace kcenon::logger::backends
standalone_backend()=default
Default constructor.
log_level normalize_level(int external_level) const override
Normalize external log level (pass-through)
std::string get_backend_name() const override
Get backend name.
bool requires_initialization() const override
Check if initialization is required.
~standalone_backend() override=default
Default destructor.
Runtime polymorphism interface for integration backends kcenon.