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
loggerBrowser logger receiving forwarded records. Defaults to the Leylines singleton.scopeScope assigned to forwarded Tauri records. Defaults totauri.metadataStructured context inherited by every forwarded Tauri record.propertiesStructured properties inherited by every forwarded Tauri record.