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
3,797 downloads per month
36KB
607 lines
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
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
- egui_tracing primarily for the tracing crate, but also supports log.
Contribution
Feel free to open issues and pull requests.
Dependencies
~7–15MB
~154K SLoC