8787//! [`Subscriber`]: https://docs.rs/tracing/latest/tracing/trait.Subscriber.html
8888//! [`tracing::Event`]: https://docs.rs/tracing/latest/tracing/struct.Event.html
8989#![ doc( html_root_url = "https://docs.rs/tracing-log/0.1.1" ) ]
90+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
9091#![ warn(
9192 missing_debug_implementations,
9293 missing_docs,
@@ -123,16 +124,20 @@ use tracing_core::{
123124} ;
124125
125126#[ cfg( feature = "log-tracer" ) ]
127+ #[ cfg_attr( docsrs, doc( cfg( feature = "log-tracer" ) ) ) ]
126128pub mod log_tracer;
127129
128130#[ cfg( feature = "trace-logger" ) ]
131+ #[ cfg_attr( docsrs, doc( cfg( feature = "trace-logger" ) ) ) ]
129132pub mod trace_logger;
130133
131134#[ cfg( feature = "log-tracer" ) ]
135+ #[ cfg_attr( docsrs, doc( cfg( feature = "log-tracer" ) ) ) ]
132136#[ doc( inline) ]
133137pub use self :: log_tracer:: LogTracer ;
134138
135139#[ cfg( feature = "trace-logger" ) ]
140+ #[ cfg_attr( docsrs, doc( cfg( feature = "trace-logger" ) ) ) ]
136141#[ deprecated(
137142 since = "0.1.1" ,
138143 note = "use the `tracing` crate's \" log\" feature flag instead"
@@ -142,6 +147,7 @@ pub use self::log_tracer::LogTracer;
142147pub use self :: trace_logger:: TraceLogger ;
143148
144149#[ cfg( feature = "env_logger" ) ]
150+ #[ cfg_attr( docsrs, doc( cfg( feature = "env_logger" ) ) ) ]
145151pub mod env_logger;
146152
147153/// Format a log record as a trace event in the current span.
0 commit comments