Crate toast_logger_win

Crate toast_logger_win 

Source
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

Structs§

BufferedRecord
A struct to own copies of parts of log::Record for buffering.
Notification
Abstracted notification.
ToastLogger
log crate logger that implements log::Log trait. It sends the logging output to the Windows Toast Notifications.
ToastLoggerBuilder
Builder for ToastLogger.

Enums§

Error

Type Aliases§

Result