Skip to main content

verbosity/
verbosity.rs

1// =============================================================================
2//        #######
3//     ###       ###     F: verbosity.rs
4//    ##   ## ##   ##    P: AppCore-Runtime
5//         ## ##
6//                       C: unknown by dnettoRaw
7//    ##   ## ##   ##    U: working-tree by dnettoRaw
8//      ###########      S: 1.0.2-rc
9// =============================================================================
10
11//! Raise detail for one component without changing global logging.
12//!
13//! This policy can be passed to a dispatcher when a single subsystem needs
14//! deeper inspection without increasing the volume of every component.
15
16use appcore_log::{LogPolicy, Verbosity};
17
18fn main() {
19    // V4 remains the default for application-wide operational messages.
20    let mut policy = LogPolicy::new(Verbosity::V4);
21
22    // Only synchronization is allowed to emit V5 through V9 details.
23    policy.set_component("sync", Verbosity::V9);
24}