Lime Web Components API Documentation - v7.2.0
    Preparing search index...

    Interface ErrorLogEntryBeta

    Log entry for Error level with optional error object

    interface ErrorLogEntry {
        data?: LogData;
        error?: Error;
        level: "error";
        message: string;
        scope: string;
        timestamp: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    data?: LogData

    Optional additional structured data

    error?: Error

    Optional error object

    Error objects do not serialize well to JSON - only name and message are preserved, while stack is lost. Storage handlers that persist logs should manually serialize errors before storage:

    const serialized = {
    name: error.name,
    message: error.message,
    stack: error.stack
    };
    level: "error"
    message: string

    The log message

    scope: string

    The scope/category this log entry belongs to

    timestamp: number

    Timestamp when the log entry was created (milliseconds since Unix epoch)

    Use Date.now() to create, new Date(timestamp) to convert back to Date object.