VSCode-Logger API - v1.7.3
    Preparing search index...

    Coordinates creation, writing, and disposal of the auto-save stream.

    Index

    Constructors

    Accessors

    Methods

    • Opens a write stream for the provided file path and wires callbacks for lifecycle events.

      Parameters

      • filePath: string
      • onError: (message: string) => void
      • onStop: () => void

      Returns Promise<void>

    • Closes the active auto-save stream if present.

      Parameters

      • options: { message?: string; silent?: boolean } = {}

      Returns Promise<boolean>

      whether a notification should be sent to the Webview.

    • Writes a single line to the active auto-save stream and reports failures to the caller.

      Parameters

      • line: string
      • onError: (message: string) => void
      • onStop: () => void

      Returns void