ChemPal Documentation - v1.17.0
    Preparing search index...

    Interface RemoteLogRecord

    One log call as handed to a RemoteLogSink.

    • level - The remote severity bucket of the call.
    • prefix - The emitting logger's prefix (includes any sub() segments).
    • message - The message passed to the logger, before any formatting.
    • args - The extra arguments passed to the logger, unsanitized.
    • location - Where the call lives in the source, as path:line#function, when the build recorded it (see tools/logCallSites.js); otherwise undefined.
    • context - Key/value pairs describing what the app was doing when the call was made, such as the active search query (see Logger.setContext); undefined when there are none.
    const record: RemoteLogRecord = {
    level: 'warn',
    prefix: 'SupplierBase|fetch',
    message: 'Request failed',
    args: [new Error('timeout')],
    location: 'suppliers/SupplierBase.ts:1431#SupplierBase.fetch',
    };
    export interface RemoteLogRecord {
    level: RemoteLogLevel;
    prefix: string;
    message: string;
    args: readonly unknown[];
    location?: string;
    context?: Readonly<Record<string, string>>;
    }
    interface RemoteLogRecord {
        level: "log" | "warn" | "error" | "fatal" | "trace" | "debug";
        prefix: string;
        message: string;
        args: readonly unknown[];
        location?: string;
        context?: Readonly<Record<string, string>>;
    }
    Index

    Properties

    level: "log" | "warn" | "error" | "fatal" | "trace" | "debug"
    prefix: string
    message: string
    args: readonly unknown[]
    location?: string
    context?: Readonly<Record<string, string>>