Expand description
Logging system with file rotation and Wine error scanning.
Provides structured logging to ~/.local/share/protontool/logs/ with automatic
file rotation when logs exceed 5MB. Also scans Wine/Proton output for known
error patterns and displays helpful diagnostics.
Re-exports§
pub use crate::wine_data::is_valid_channel;pub use crate::wine_data::lookup_hresult;pub use crate::wine_data::lookup_ntstatus;pub use crate::wine_data::lookup_win32_error;pub use crate::wine_data::WINE_DEBUG_CHANNELS;
Structs§
Enums§
- LogLevel
- Log level for messages
Functions§
- debug
- Log a debug message
- error
- Log an error message
- get_
current_ log_ path - Get the path to the current log file
- info
- Log an info message
- log_
executable_ output - Log executable output and scan for known Wine/Windows errors. Automatically detects missing DLLs and other common issues from output.
- parse_
log_ deduplicated - Parse log file and deduplicate entries by (level, message). Returns entries sorted by timestamp (most recent first) with occurrence counts.
- tail_
log - Read the last N lines from the current log file.
- warn
- Log a warning message