Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MakeWriterExt docs fix #2831

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tracing-subscriber/src/fmt/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ pub trait MakeWriterExt<'a>: MakeWriter<'a> {
/// use tracing_subscriber::fmt::writer::MakeWriterExt;
///
/// // Construct a writer that outputs events to `stderr` only if the span or
/// // event's level is >= WARN (WARN and ERROR).
/// // event's level is <= WARN (WARN and ERROR).
/// let mk_writer = std::io::stderr.with_max_level(Level::WARN);
///
/// tracing_subscriber::fmt().with_writer(mk_writer).init();
Expand Down Expand Up @@ -307,7 +307,7 @@ pub trait MakeWriterExt<'a>: MakeWriter<'a> {
/// use tracing_subscriber::fmt::writer::MakeWriterExt;
///
/// // Construct a writer that outputs events to `stdout` only if the span or
/// // event's level is <= DEBUG (DEBUG and TRACE).
/// // event's level is >= DEBUG (DEBUG and TRACE).
/// let mk_writer = std::io::stdout.with_min_level(Level::DEBUG);
///
/// tracing_subscriber::fmt().with_writer(mk_writer).init();
Expand Down Expand Up @@ -454,7 +454,7 @@ pub trait MakeWriterExt<'a>: MakeWriter<'a> {
/// use tracing::Level;
/// use tracing_subscriber::fmt::writer::MakeWriterExt;
///
/// // Produces a writer that writes to `stderr` if the level is >= WARN,
/// // Produces a writer that writes to `stderr` if the level is <= WARN,
/// // or returns `OptionalWriter::none()` otherwise.
/// let stderr = std::io::stderr.with_max_level(Level::WARN);
///
Expand Down
Loading