Struct anira::LogConfig#
-
struct LogConfig#
Logging configuration of the inference context.
Process-global like the thread pool: applied by the first session, reconciled against later sessions’ configurations while sessions exist (the level follows “most verbose wins”, the other fields must match and a mismatch is reported with a warning). The queue capacity is fixed the first time the context is built in a process.
Public Functions
Public Members
-
LogLevel m_level = default_log_level()#
Minimum severity emitted by anira and forwarded to the backends (see LogLevel).
-
LogDrain m_drain = default_log_drain()#
Who drains the real-time log queue (see LogDrain).
-
size_t m_queue_capacity = 512#
Records the real-time queue holds; rounded up to a power of two, clamped to [64, 65536]. A full queue drops (and counts) further records until drained. Rule of thumb: capacity >= expected burst rate x drain interval.
-
uint32_t m_drain_interval_ms = 10#
Interval of the drain thread (LogDrain::Thread only). Bounds the delivery latency and the burst the queue must absorb between two passes.
-
LogLevel m_level = default_log_level()#