Function xdirs::log_dir[][src]

pub fn log_dir() -> Option<PathBuf>

Returns the path to the user’s log file directory.

The returned value depends on the operating system and is either a Some, containing a value from the following table, or a None.

PlatformValueExample
Linux--
macOS$HOME/Library/Logs/Users/Alice/Library/Logs
Windows{FOLDERID_LocalAppData}\LogsC:\Users\Alice\AppData\AppData\Local\Logs

See also log_dir_for.