egui_tracing 0.3.0

Integrates tracing and logging with egui for event collection/visualization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use chrono::{DateTime, Local};

pub trait DateTimeFormatExt {
    fn format_short(&self) -> String;
    fn format_detailed(&self) -> String;
}

impl DateTimeFormatExt for DateTime<Local> {
    fn format_short(&self) -> String {
        self.format("%H:%M:%S%.3f").to_string()
    }
    fn format_detailed(&self) -> String {
        self.format("%Y-%m-%dT%H:%M:%S%.f%:z").to_string()
    }
}