()
| 266 | } |
| 267 | |
| 268 | fn terminal_layer() -> BoxedLayer { |
| 269 | let directives = terminal_directives(std::env::var("RUST_LOG").ok(), verbose_requested()); |
| 270 | tracing_subscriber::fmt::layer() |
| 271 | .with_writer(std::io::stderr) |
| 272 | .event_format(terminal::EnvLoggerFormat) |
| 273 | .with_filter(EnvFilter::builder().parse_lossy(directives)) |
| 274 | .boxed() |
| 275 | } |
| 276 | |
| 277 | /// Why the log file could not be opened. |
| 278 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected