Skip to main content

Crate cu29_log_runtime

Crate cu29_log_runtime 

Source

Structs§

LiveLogListenerGuard
LoggerRuntime
The lifetime of this struct is the lifetime of the logger.
NullLog
OwningIoWriter
SimpleFileWriter
This allows this crate to be used outside of Copper (ie. decoupling it from the unifiedlog.

Functions§

capture_live_logs
Capture structured log entries emitted while f runs.
format_message_only
log
Public entry point used in release / no-debug paths.
log_debug_mode
This version of log is only compiled in debug mode This allows a normal logging framework to be bridged.
register_live_log_listener
Register a live log listener; subsequent logs invoke cb.
scoped_live_log_listener
Register a scoped live log listener and remove it when the returned guard is dropped.
structured_log_bytes_total
Returns the total number of bytes written to the structured log stream.
unregister_live_log_listener
Remove all registered live log listeners. No-op if runtime not initialized.
unregister_live_log_listener_id
Remove a live log listener by id. No-op if runtime not initialized.

Type Aliases§

LiveLogListener
Callback signature: receives the structured entry plus its format string and param names.
LiveLogListenerId