Logger System
0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
log_filter_interface.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
12
#pragma once
13
14
#include <string>
15
16
namespace
kcenon::logger
{
17
18
// Forward declaration
19
struct
log_entry;
20
28
class
log_filter_interface
{
29
public
:
30
virtual
~log_filter_interface
() =
default
;
31
37
virtual
bool
should_log
(
const
log_entry
& entry)
const
= 0;
38
43
virtual
std::string
get_name
()
const
= 0;
44
};
45
46
}
// namespace kcenon::logger
kcenon::logger::log_filter_interface
Interface for log filters.
Definition
log_filter_interface.h:28
kcenon::logger::log_filter_interface::get_name
virtual std::string get_name() const =0
Get the name of this filter.
kcenon::logger::log_filter_interface::~log_filter_interface
virtual ~log_filter_interface()=default
kcenon::logger::log_filter_interface::should_log
virtual bool should_log(const log_entry &entry) const =0
Check if a log entry should be processed.
kcenon::logger
Definition
common_logger_adapter.h:29
kcenon::logger::log_entry
Represents a single log entry with all associated metadata.
Definition
log_entry.h:155
include
kcenon
logger
interfaces
log_filter_interface.h
Generated by
1.12.0