Crate egui_logger

source ·
Expand description

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:

fn main() {
  // Should be called very early in the program.
  egui_logger::builder().init().unwrap(); 
}

§inside your ui logic:

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

§Alternatives

§Contribution

Feel free to open issues and pull requests.

Structs§

  • The builder for the logger. You can use builder() to get an instance of this.
  • The logger for egui You might want to use builder() instead. To get a builder with default values.
  • The Ui for the Logger. You can use logger_ui() to get a default instance of the LoggerUi

Functions§