# tracing::level_filters::STATIC_MAX_LEVEL - Rust
API documentation for the Rust `STATIC_MAX_LEVEL` constant in crate `tracing`.
Keywords: rust, rustlang, rust-lang, STATIC_MAX_LEVEL

# Constant tracing::level_filters::STATIC_MAX_LEVEL [−] [src]

    pub const STATIC_MAX_LEVEL: LevelFilter;

The statically configured maximum trace level.

See the module-level documentation for information on how to configure this.

This value is checked by the `event!` and `span!` macros. Code that manually constructs events or spans via the `Event::record` function or `Span` constructors should compare the level against this value to determine if those spans or events are enabled.