Skip to content

Commit 51f498a

Browse files
hawkwdavidbarsky
andcommitted
subscriber: "implementing FormatEvent" docs (#1727)
This branch adds some documentation to the `FormatEvent` trait in `tracing_subscriber::fmt` on how to write user-provided `FormatEvent` implementations. There's probably room for additional improvement here, but I just wanted to get something written down for now. I also fixed a broken link I noticed while I was here. Signed-off-by: Eliza Weisman <eliza@buoyant.io> Co-authored-by: David Barsky <me@davidbarsky.com>
1 parent 055aa69 commit 51f498a

File tree

1 file changed

+1
-1
lines changed
  • tracing-subscriber/src/fmt/format

1 file changed

+1
-1
lines changed

tracing-subscriber/src/fmt/format/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub use pretty::*;
155155
///
156156
/// [`fmt::Layer`]: super::Layer
157157
/// [`fmt::Subscriber`]: super::Subscriber
158-
/// [`layer::Context`]: crate::layer::Context
158+
/// [`Event`]: tracing::Event
159159
/// [implements `FormatFields`]: super::FmtContext#impl-FormatFields<'writer>
160160
/// [ANSI terminal escape codes]: https://en.wikipedia.org/wiki/ANSI_escape_code
161161
/// [`Writer::has_ansi_escapes`]: Writer::has_ansi_escapes

0 commit comments

Comments
 (0)