|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Log router for directing messages to specific writers. More...
#include <log_router.h>

Public Member Functions | |
| void | add_route (route_config config) |
| Add a routing rule. | |
| void | set_exclusive_routes (bool exclusive) |
| Set exclusive routing mode. | |
| void | clear_routes () |
| Clear all routes. | |
| std::vector< std::string > | get_writers_for_log (const log_entry &entry) const |
| Get writer names for a log entry. | |
| bool | is_exclusive_routing () const |
| Check if exclusive routing is enabled. | |
Private Attributes | |
| std::vector< route_config > | routes_ |
| bool | exclusive_routes_ = false |
Log router for directing messages to specific writers.
Definition at line 49 of file log_router.h.
|
inline |
Add a routing rule.
Definition at line 58 of file log_router.h.
References routes_.
Referenced by kcenon::logger::routing::router_builder::route_to(), and kcenon::logger::routing::router_builder::route_to().

|
inline |
|
inline |
Get writer names for a log entry.
Definition at line 79 of file log_router.h.
References routes_.
|
inline |
Check if exclusive routing is enabled.
Definition at line 97 of file log_router.h.
References exclusive_routes_.
|
inline |
Set exclusive routing mode.
Definition at line 65 of file log_router.h.
References exclusive_routes_.
|
private |
Definition at line 52 of file log_router.h.
Referenced by is_exclusive_routing(), and set_exclusive_routes().
|
private |
Definition at line 51 of file log_router.h.
Referenced by add_route(), clear_routes(), and get_writers_for_log().