Structs§
- Live
LogListener Guard - Logger
Runtime - The lifetime of this struct is the lifetime of the logger.
- NullLog
- Owning
IoWriter - Simple
File Writer - 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
fruns. - 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§
- Live
LogListener - Callback signature: receives the structured entry plus its format string and param names.
- Live
LogListener Id