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
16namespace kcenon::logger {
17
18// Forward declaration
19struct log_entry;
20
29public:
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
virtual std::string get_name() const =0
Get the name of this filter.
virtual bool should_log(const log_entry &entry) const =0
Check if a log entry should be processed.
Represents a single log entry with all associated metadata.
Definition log_entry.h:155