Interface ILogEntry

Single log entry stored in the log history.

interface ILogEntry {
    args: unknown[];
    createdAt: string;
    executionContext: IExecutionContext;
    id: string;
    methodContext: IMethodContext;
    priority: number;
    timestamp: number;
    topic: string;
    type: "log" | "debug" | "info" | "warn";
}

Properties

args: unknown[]

Additional arguments passed to the log call

createdAt: string

Date taken from backtest context to improve user experience

executionContext: IExecutionContext

Optional execution context associated with the log entry, providing additional details about the execution environment or state when the log was recorded

id: string

Unique entry identifier generated via randomString

methodContext: IMethodContext

Optional method context associated with the log entry, providing additional details about the execution environment or state when the log was recorded

priority: number

Current Unix timestamp in milliseconds for storage rotate

timestamp: number

Unix timestamp in milliseconds taken from backtest context to improve user experience

topic: string

Log topic / method name

type: "log" | "debug" | "info" | "warn"

Log level