18 releases

0.7.0 Apr 29, 2025
0.6.3 Feb 23, 2025
0.6.2 Dec 27, 2024
0.6.1 Oct 3, 2024
0.2.2 Nov 3, 2022

#138 in GUI

Download history 718/week @ 2025-02-02 593/week @ 2025-02-09 508/week @ 2025-02-16 2668/week @ 2025-02-23 2077/week @ 2025-03-02 2341/week @ 2025-03-09 2058/week @ 2025-03-16 1519/week @ 2025-03-23 1795/week @ 2025-03-30 925/week @ 2025-04-06 877/week @ 2025-04-13 548/week @ 2025-04-20 732/week @ 2025-04-27 705/week @ 2025-05-04 1371/week @ 2025-05-11 950/week @ 2025-05-18

3,797 downloads per month

MIT license

36KB
607 lines

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.

Dependencies

~7–15MB
~154K SLoC