Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
logger_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
14#pragma once
15
18
19#include <string>
20
21namespace database
22{
23namespace integrated
24{
25namespace adapters
26{
27namespace backends
28{
29
38{
39public:
40 virtual ~logger_backend() = default;
41
47
53
58 virtual bool is_initialized() const = 0;
59
65 virtual void log(db_log_level level, const std::string& message) = 0;
66
70 virtual void flush() = 0;
71};
72
73} // namespace backends
74} // namespace adapters
75} // namespace integrated
76} // namespace database
Abstract base class for logger backends.
virtual void flush()=0
Flush pending log messages.
virtual common::VoidResult initialize()=0
Initialize the logger backend.
virtual bool is_initialized() const =0
Check if backend is initialized.
virtual common::VoidResult shutdown()=0
Shutdown the logger backend gracefully.
virtual void log(db_log_level level, const std::string &message)=0
Log a message.
Common Result<T> pattern for integrated database system.
Unified configuration for integrated database system.
db_log_level
Database logging level enumeration.