Function tauri::api::path::app_log_dir
source · pub fn app_log_dir(config: &Config) -> Option<PathBuf>
Expand description
Returns the path to the suggested directory for your app’s log files.
§Platform-specific
- Linux: Resolves to
config_dir
/${bundle_identifier}/logs
. - macOS: Resolves to
home_dir
/Library/Logs/${bundle_identifier}
- Windows: Resolves to
config_dir
/${bundle_identifier}/logs
.
See PathResolver::app_log_dir
for a more convenient helper function.