egui_logger 0.6.0

log implementation for egui
Documentation

Crates.io docs.rs

egui_logger

This library implements log logging support into egui applications. There is also advanced search via regex.

Demo

demo

Example

initilazing:

# #[allow(clippy::needless_doctest_main)]
fn main() {
  // Should be called very early in the program.
  egui_logger::builder().init().unwrap(); 
}

inside your ui logic:

# fn ui(ctx: &egui::Context) {
egui::Window::new("Log").show(ctx, |ui| {
  // draws the logger ui.
  egui_logger::logger_ui().show(ui);
});
# }

Alternatives

Contribution

Feel free to open issues and pull requests.