Skip to main content

Module log

Module log 

Source
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§

LogEntry
Parsed log entry for the viewer
Logger
Logger for protontool

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