Skip to content

appLogDir

Module @netwiv/api/path · Kind Function

import { appLogDir } from '@netwiv/api/path';

Returns the path to the suggested directory for your app’s log files.

  • Linux: Resolves to ${configDir}/${bundleIdentifier}/logs.
  • macOS: Resolves to ${homeDir}/Library/Logs/{bundleIdentifier}
  • Windows: Resolves to ${configDir}/${bundleIdentifier}/logs.
function appLogDir(): Promise<string>
import { appLogDir } from '@netwiv/api/path';
const appLogDirPath = await appLogDir();

Upstream since 1.2.0


Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.