Skip to main content

Module logs

Module logs 

Source
Expand description

Internal logs source that hooks into the tracing subscriber to emit own logs as events.

Structs§

InternalLogsTask
LogCaptureLayer
A tracing Layer that captures log messages and sends them to a channel.

Functions§

log_sender
Returns a Sender that can be used to feed logs into the InternalLogs source.
take_log_receiver
Returns the Receiver for the InternalLogs source. Note: This can only be called once as it moves the receiver.