#notifications #toast #logging #windows

toast-logger-win

Rust’s log crate logger that sends logging output to the Windows Toast Notifications

9 unstable releases (3 breaking)

Uses new Rust 2024

new 0.4.0 May 26, 2025
0.3.1 May 24, 2025
0.2.3 May 24, 2025
0.1.1 May 20, 2025

#681 in Debugging

Download history 680/week @ 2025-05-19

680 downloads per month
Used in monitor-input

Apache-2.0

26KB
369 lines

CI-badge crate-badge docs-badge

toast-logger-win

ToastLogger is a log crate logger that sends logging output to the Windows Toast Notifications. This is handy when you want to present errors or a small amount of text to users from UI-less applications on Windows.

The following example shows a toast notification saying "Hello, world".

ToastLogger::builder()
    .max_level(log::LevelFilter::Error)
    .init()?;
log::error!("Hello, world");

Please see the API documentation at docs.rs for more details, and release notes for the change history.

Dependencies

~121MB
~2M SLoC