Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::log::HandleAwareSink Class Referencefinal

Per-handle file sink dispatcher (installed on default logger). More...

Inheritance diagram for entropic::log::HandleAwareSink:
Collaboration diagram for entropic::log::HandleAwareSink:

Public Member Functions

void log (const spdlog::details::log_msg &msg) override
 Route message to the current thread's handle file sink.
 
void flush () override
 Flush every registered handle sink.
 
void set_pattern (const std::string &pattern) override
 Apply pattern to all registered sinks.
 
void set_formatter (std::unique_ptr< spdlog::formatter > f) override
 Spdlog's set_formatter shim.
 
void register_sink (int id, std::shared_ptr< spdlog::sinks::sink > s)
 Register/replace the sink for a handle id.
 
void unregister_sink (int id)
 Remove a handle id's sink registration.
 
std::vector< int > registered_ids () const
 Snapshot of registered ids (tests + diagnostics).
 

Detailed Description

Per-handle file sink dispatcher (installed on default logger).

Definition at line 39 of file logging.cpp.

Member Function Documentation

◆ flush()

void entropic::log::HandleAwareSink::flush ( )
inlineoverride

Flush every registered handle sink.

Definition at line 55 of file logging.cpp.

◆ log()

void entropic::log::HandleAwareSink::log ( const spdlog::details::log_msg &  msg)
inlineoverride

Route message to the current thread's handle file sink.

Definition at line 43 of file logging.cpp.

◆ register_sink()

void entropic::log::HandleAwareSink::register_sink ( int  id,
std::shared_ptr< spdlog::sinks::sink >  s 
)
inline

Register/replace the sink for a handle id.

Definition at line 90 of file logging.cpp.

◆ registered_ids()

std::vector< int > entropic::log::HandleAwareSink::registered_ids ( ) const
inline

Snapshot of registered ids (tests + diagnostics).

Definition at line 104 of file logging.cpp.

◆ set_formatter()

void entropic::log::HandleAwareSink::set_formatter ( std::unique_ptr< spdlog::formatter >  f)
inlineoverride

Spdlog's set_formatter shim.

Definition at line 73 of file logging.cpp.

◆ set_pattern()

void entropic::log::HandleAwareSink::set_pattern ( const std::string &  pattern)
inlineoverride

Apply pattern to all registered sinks.

Definition at line 66 of file logging.cpp.

◆ unregister_sink()

void entropic::log::HandleAwareSink::unregister_sink ( int  id)
inline

Remove a handle id's sink registration.

Definition at line 97 of file logging.cpp.


The documentation for this class was generated from the following file: