Module writer

Source
Expand description

Helpers to prevent progress bars from clobbering your console output.

Structs§

IndicatifWriter
A wrapper around std::io::stdout() or std::io::stderr() to ensure that output to either is not clobbered by active progress bars. This should be passed into tracing fmt’s layer so tracing log entries are not clobbered.
Stderr
Marker for where the IndicatifWriter should write to.
Stdout
Marker for where the IndicatifWriter should write to.

Traits§

WriterTarget

Functions§

get_indicatif_stderr_writer
Returns the stderr writer (equivalent to get_stderr_writer) of the registered IndicatifLayer for the current default tracing subscriber.
get_indicatif_stdout_writer
Returns the stdout writer (equivalent to get_stdout_writer) of the registered IndicatifLayer for the current default tracing subscriber.