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    },
13
14    /// Prints only the event's field values.
15    JustTheContents,
16}
17
18// You can pick whichever default you prefer:
19impl Default for EventPrinter {
20    fn default() -> Self {
21        Self::LogLineAndContents {
22            show_timestamp: true,
23            show_loglevel:  true,
24        }
25    }
26}