GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — logToTmpFolder | ADK for TypeScript: API Reference - v2.5.0

  • logToTmpFolder

Function logToTmpFolder

  • logToTmpFolder(options?: LogToTmpFolderOptions): string

    Configures the global ADK logger to write formatted log records to a timestamped file in the system temporary directory and updates the <prefix>.latest.log symlink to point to the newest file.

    The log directory is restricted to the current user (mode 0o700) and the log file is created with mode 0o600. If <tmp>/<subFolder> is a symlink, is not a directory, or is owned by another user, the logs go to <tmp>/<subFolder>_<uid> instead. Records are written through the file descriptor opened at creation. The default timestamp includes the process ID. If the log filename is already taken, a numeric _<n> suffix is appended so that an existing file is never overwritten. The path of the log file is printed to stderr.

    Parameters

    • options: LogToTmpFolderOptions = {}

      Configuration options for the temporary log file.

    Returns string

    The absolute path to the created log file.

    • Defined in core/src/cli/utils/logs.ts:289
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.