Skip to content

Commit ce6c403

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 <[email protected]> Co-authored-by: David Barsky <[email protected]>
1 parent f86322a commit ce6c403

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: tracing-subscriber/src/fmt/format/mod.rs

+1-1
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)