Skip to main content

studiole_logging/configuration/
target_filter.rs

1//! Per-target log level override.
2use crate::prelude::*;
3
4/// Override the log level for a specific target.
5///
6/// - Target is a crate or module path
7#[derive(Clone, Debug, Eq, PartialEq)]
8pub struct TargetFilter {
9    /// Target name.
10    ///
11    /// - Typically a crate name like `"sqlx"`
12    pub name: String,
13    /// Log level to apply to this target.
14    pub level: LogLevel,
15}