Expand description
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");§Features
- The feature
winrt-toastswitches the underlying implementation from thewindowscrate to thewinrt-toastcrate. Please see theNotificationfor more details.
Structs§
- Buffered
Record - A struct to own copies of parts of
log::Recordfor buffering. - Notification
- Abstracted notification.
- Toast
Logger logcrate logger that implementslog::Logtrait. It sends the logging output to the Windows Toast Notifications.- Toast
Logger Builder - Builder for
ToastLogger.