egui_logger

Crates.ioegui_logger
lib.rsegui_logger
version0.8.0
created_at2022-10-24 09:14:06.246868+00
updated_at2025-07-21 20:01:52.247354+00
descriptionlog implementation for egui
homepage
repositoryhttps://github.com/RegenJacob/egui_logger
max_upload_size
id695737
size136,370
Jacob (RegenJacob)

documentation

README

Crates.io docs.rs

egui_logger

This library implements a UI for displaying log messages in egui applications. There are also various ways to filter the logging output within the UI, such as a regex search through the messages.

Demo

demo

Features

  • puffin compatibility with the puffin crate.

Example

Initializing:

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.

Commit count: 69

cargo fmt