1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Tracing initialization module.
//!
//! Provides [`init_tracing`] for setting up structured logging with
//! the `tracing` ecosystem.
//!
//! ## Log Levels
//!
//! Default filter: `info,sqlx=warn,sea_orm=info`
//!
//! Override with the `RUST_LOG` environment variable:
//!
//! ```bash
//! RUST_LOG=debug cargo run
//! ```
//!
//! ## Example
//!
//! ```rust,ignore
//! use royalty::tracing::init_tracing;
//!
//! fn main() {
//! init_tracing();
//! tracing::info!("Application started");
//! }
//! ```
use ;
/// Initializes the global tracing subscriber.
///
/// Call this once at the start of your application, before any logging.
/// Reads log level configuration from the `RUST_LOG` environment variable.