Tauri appLogDir
appLogDir():Promise
<string
>
返回应用日志文件的建议目录的路径。
特定于平台
- Linux:解析为
${configDir}/${bundleIdentifier}/logs
- macOS:解析为
${homeDir}/Library/Logs/{bundleIdentifier}
- Windows:解析为
${configDir}/${bundleIdentifier}/logs
例
import { appLogDir } from '@tauri-apps/api/path';
const appLogDirPath = await appLogDir();
Since: 1.2.0
Returns: Promise
<string
>