Expand description
Platform-specific log file path resolution.
Resolves the default location of MTG Arena’s Player.log on each
supported platform (Windows via known-folders, macOS via ~/Library/Logs/,
Linux via Steam/Proton libraryfolders.vdf or Lutris fallback).
§Usage
use manasight_parser::log::discovery;
// Resolve and verify the log file exists:
match discovery::discover_log_file() {
Ok(paths) => println!("Found: {}", paths.player_log().display()),
Err(e) => eprintln!("Discovery failed: {e}"),
}When discover_log_file returns DiscoveryError::LogFileMissing,
callers should notify the user (e.g., “MTG Arena not found” or “Enable
Detailed Logging”) and poll periodically until the file appears.
Structs§
- LogPaths
- Resolved paths to MTG Arena log files.
Enums§
- Discovery
Error - Errors that can occur during log file discovery.
Functions§
- discover_
log_ file - Resolves the platform-specific
Player.logpath and verifies the file exists on disk. - resolve_
log_ paths - Resolves the expected platform-specific log file paths without checking whether the files exist on disk.