tracing_setup/
event_printer.rs

1crate::ix!();
2
3#[derive(Debug, Clone)]
4pub enum EventPrinter {
5    /// Display the entire `tracing::Event` with all debug info.
6    FullWithHeader,
7
8    /// A single-line format that can optionally include timestamps/levels.
9    LogLineAndContents {
10        show_timestamp: bool,
11        show_loglevel:  bool,
12        show_location:  bool,
13    },
14
15    /// Prints only the event's field values.
16    JustTheContents,
17}
18
19// You can pick whichever default you prefer:
20impl Default for EventPrinter {
21    fn default() -> Self {
22        Self::LogLineAndContents {
23            show_timestamp: false,
24            show_loglevel:  true,
25            show_location:  true,
26        }
27    }
28}