|
Radix Relay
Hybrid mesh communications with Signal Protocol encryption
|
Custom spdlog sink that routes log messages to a display queue. More...
#include <tui_sink.hpp>
Public Member Functions | |
| tui_sink (std::shared_ptr< async::async_queue< core::events::display_filter_input_t > > queue) | |
| Constructs a TUI sink with the given display queue. | |
Protected Member Functions | |
| auto | sink_it_ (const spdlog::details::log_msg &msg) -> void override |
| Formats and queues a log message. | |
| auto | flush_ () -> void override |
| Flushes pending log messages (no-op for queue-based sink). | |
Custom spdlog sink that routes log messages to a display queue.
| Mutex | Mutex type for thread safety (e.g., std::mutex) |
Formats log messages and pushes them to an async queue for display in the TUI.
Definition at line 19 of file tui_sink.hpp.
|
inlineexplicit |
Constructs a TUI sink with the given display queue.
| queue | Queue for outgoing display messages |
Definition at line 27 of file tui_sink.hpp.
|
inlineoverrideprotected |
Flushes pending log messages (no-op for queue-based sink).
Definition at line 56 of file tui_sink.hpp.
|
inlineoverrideprotected |
Formats and queues a log message.
| msg | Log message from spdlog |
Definition at line 37 of file tui_sink.hpp.
References radix_relay::platform::current_timestamp_ms(), radix_relay::core::events::display_message::message, and radix_relay::core::events::display_message::system.