Reference

leylines/tauri

Functions

attachTauriLogger

Attach Tauri plugin-log forwarding to the Leylines browser logger connected by the Vite plugin.

export function attachTauriLogger(options?: TauriLoggerOptions): DetachTauriLogger;

šŸ” attachTauriLogger on GitHub

Types

DetachTauriLogger

Function returned by Tauri's logger attachment to stop forwarding records.

export type DetachTauriLogger = () => void;

šŸ” DetachTauriLogger on GitHub

TauriLoggerOptions

Options for forwarding Tauri plugin-log records into Leylines.

export interface TauriLoggerOptions {
  logger?: BrowserLogger;
  scope?: string;
  metadata?: JsonObject;
  properties?: JsonObject;
}

Properties

  • logger Browser logger receiving forwarded records. Defaults to the Leylines singleton.

  • scope Scope assigned to forwarded Tauri records. Defaults to tauri.

  • metadata Structured context inherited by every forwarded Tauri record.

  • properties Structured properties inherited by every forwarded Tauri record.

šŸ” TauriLoggerOptions on GitHub