mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00
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>
This commit is contained in:
parent
f86322a464
commit
ce6c403680
@ -155,7 +155,7 @@ pub use pretty::*;
|
||||
///
|
||||
/// [`fmt::Layer`]: super::Layer
|
||||
/// [`fmt::Subscriber`]: super::Subscriber
|
||||
/// [`layer::Context`]: crate::layer::Context
|
||||
/// [`Event`]: tracing::Event
|
||||
/// [implements `FormatFields`]: super::FmtContext#impl-FormatFields<'writer>
|
||||
/// [ANSI terminal escape codes]: https://en.wikipedia.org/wiki/ANSI_escape_code
|
||||
/// [`Writer::has_ansi_escapes`]: Writer::has_ansi_escapes
|
||||
|
Loading…
x
Reference in New Issue
Block a user