Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RegenJacob/egui_logger
a log implementation for egui
https://github.com/RegenJacob/egui_logger
egui game-development gui log logging rust
Last synced: about 2 months ago
JSON representation
a log implementation for egui
- Host: GitHub
- URL: https://github.com/RegenJacob/egui_logger
- Owner: RegenJacob
- License: mit
- Created: 2022-10-24T03:36:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T11:04:30.000Z (3 months ago)
- Last Synced: 2024-10-03T11:09:16.202Z (3 months ago)
- Topics: egui, game-development, gui, log, logging, rust
- Language: Rust
- Homepage:
- Size: 334 KB
- Stars: 38
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-egui - egui_logger
README
[![Crates.io](https://img.shields.io/crates/v/egui_logger)](https://crates.io/crates/egui_logger)
[![docs.rs](https://img.shields.io/docsrs/egui_logger)](https://docs.rs/egui_logger/latest/egui_logger/)# egui_logger
This library implements [`log`](https://crates.io/crates/log) logging support into [`egui`](https://crates.io/crates/egui) applications.
There is also advanced search via regex.## Demo
![demo](images/egui_logger.png "Demo")## Example
### initilazing:
```rust
fn main() {
// Should be called very early in the program.
egui_logger::builder().init().unwrap();
}
```### inside your ui logic:
```rust
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](https://crates.io/crates/egui_tracing) primarily for the [tracing](https://crates.io/crates/tracing) create, but also supports log.## Contribution
Feel free to open issues and pull requests.