Skip to main content

Crate cu29_log_runtime

Crate cu29_log_runtime 

Source

Structs§

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§

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. No-op if runtime not initialized.
structured_log_bytes_total
Returns the total number of bytes written to the structured log stream.
unregister_live_log_listener
Remove any registered live log listener. No-op if runtime not initialized.

Type Aliases§

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