Function tauri_sys::path::app_log_dir
source · pub async fn app_log_dir() -> Result<PathBuf, Error>
Expand description
Returns the path to the suggested directory for your app’s log files.
§Platform-specific
- Linux: Resolves to
${configDir}/${bundleIdentifier}/logs
. - macOS: Resolves to
${homeDir}/Library/Logs/{bundleIdentifier}
- Windows: Resolves to
${configDir}/${bundleIdentifier}/logs
.
§Example
use tauri_sys::path::app_log_dir;
let app_log_dir_path = app_log_dir().await?;