Expand description
essential traits and re-exports
Re-exports§
pub use crate::Entrypoint;pub use crate::DotEnvParser;pub use crate::DotEnvParserConfig;pub use crate::Logger;pub use crate::LoggerConfig;pub use crate::anyhow;pub use crate::clap;pub use crate::tracing;pub use crate::tracing_subscriber;pub use crate::macros::*;
Modules§
- event
- Events represent single points in time during the execution of a program.
- instrument
- Attach a span to a
std::future::Future. - reload
- Wrapper for a
Layerto allow it to be dynamically reloaded. - span
- Spans represent periods of time in which a program was executing in a particular context.
Macros§
- debug
- Constructs an event at the debug level.
- debug_
span - Constructs a span at the debug level.
- enabled
- Checks whether a span or event is enabled based on the provided metadata.
- error
- Constructs an event at the error level.
- error_
span - Constructs a span at the error level.
- event
- Constructs a new
Event. - info
- Constructs an event at the info level.
- info_
span - Constructs a span at the info level.
- span
- Constructs a new span.
- trace
- Constructs an event at the trace level.
- trace_
span - Constructs a span at the trace level.
- warn
- Constructs an event at the warn level.
- warn_
span - Constructs a span at the warn level.
Structs§
- Compact
- Marker for
Formatthat indicates that the compact log format should be used. - Format
- A pre-configured event formatter.
- Full
- Marker for
Formatthat indicates that the default log format should be used. - Json
- Marker for
Formatthat indicates that the newline-delimited JSON log format should be used. - Layer
- A
Layerthat logs formatted representations oftracingevents. - Level
- Describes the level of verbosity of a span or event.
- Level
Filter - A filter comparable to a verbosity
Level. - Pretty
- An excessively pretty, human-readable event formatter.
- Registry
- A shared, reusable store for spans.
Traits§
- Context
- Provides the
contextmethod forResult. - Format
Event - A type that can format a tracing
Eventto aWriter. - Format
Fields - A type that can format a set of fields to a
Writer. - Lookup
Span - Provides access to stored span data.
- Make
Writer - A type that can create
io::Writeinstances. - Parser
- Parse command-line arguments into
Self. - Subscriber
- Trait representing the functions required to collect trace data.
- _
- Extension trait adding utility methods for subscriber initialization.
- __
tracing_ subscriber_ Layer - A composable handler for
tracingevents. - __
tracing_ subscriber_ Subscriber Ext - Extension trait adding a
with(Layer)combinator toSubscribers. - __
tracing_ subscriber_ field_ Make Ext - Extension trait providing
MakeVisitorcombinators. - __
tracing_ subscriber_ field_ Record Fields - Extension trait implemented by types which can be recorded by a visitor.
Attribute Macros§
- instrument
- Instruments a function to create and enter a
tracingspan every time the function is called.
Derive Macros§
- Parser
- Generates the
Parserimplementation.