This is a modified version of the original egui_logger crate. The original crate can be found here.
Changes made:
- Add a
Category
filter (log target, e.g. "my_crate::my_module") - Display log time
- local time (HH:MM:SS or HH:MM:SS.mmm)
- time since start
- Display and highlight log target
- Disable alphabetic sorting of log entries
- Display in monospace to align columns
This library implements log
logging support into egui
applications.
There is also advanced search via regex.
# #[allow(clippy::needless_doctest_main)]
fn main() {
// Should be called very early in the program.
egui_logger::builder().init().unwrap();
}
# fn ui(ctx: &egui::Context) {
egui::Window::new("Log").show(ctx, |ui| {
// draws the logger ui.
egui_logger::logger_ui().show(ui);
});
# }
- egui_tracing primarily for the tracing create, but also supports log.
Feel free to open issues and pull requests.