Skip to content

Commit

Permalink
subscriber: Expose FmtContext (#425)
Browse files Browse the repository at this point in the history
With #420, we introduced FmtContext and made it a required parameter on
FormatEvent's primary methods. However, we forgot to export it, making
it impossible to write custom FormatEvent implementations. This PR fixes
that oversight. Thanks to @samscott89 for noticing this!

Signed-off-by: David Barsky [email protected]
  • Loading branch information
davidbarsky authored Nov 14, 2019
1 parent 919a628 commit 773c440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-subscriber/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ mod fmt_layer;
pub mod format;
pub mod time;
pub mod writer;
pub use fmt_layer::{FormattedFields, Layer, LayerBuilder};
pub use fmt_layer::{FmtContext, FormattedFields, Layer, LayerBuilder};

use crate::layer::Layer as _;
use crate::{filter::LevelFilter, layer, registry::Registry};
Expand Down

0 comments on commit 773c440

Please sign in to comment.