Configuration options passed to startLog.

interface LogStartOptions {
    can?: boolean;
    compression?: number;
    devices?: string[];
    format?: LogFormat;
    lin?: boolean;
    path: string;
}

Properties

can?: boolean

Whether to record all CAN-related traffic (canBase and canError).

  • For 'blf', defaults to true (false is invalid because BLF only supports CAN).
  • For 'asc', defaults to true when neither can nor lin is specified; if only lin: true is passed, CAN is disabled automatically.
compression?: number

Zlib compression level for 'blf' files.

Ignored for 'asc'. Valid values: -1 (zlib default), 0 (no compression), or 1–9. Defaults to -1.

devices?: string[]

Device names or device IDs to record.

When omitted, records all matching CAN/LIN devices attached to the current script/test node (or all active matching CAN/LIN devices in the project if the node has no attached channels).

format?: LogFormat

Output log format ('asc' or 'blf').

Optional when path ends with .asc or .blf (case-insensitive). Required when path does not carry a recognized extension.

lin?: boolean

Whether to record all LIN-related traffic (linBase, linError, and linEvent).

  • Supported for 'asc' only (passing lin: true with 'blf' throws an error).
  • For 'asc', defaults to true when neither can nor lin is specified; if only can: true is passed, LIN is disabled automatically.
path: string

Output file path.

Relative paths are resolved against process.env.PROJECT_ROOT. Missing parent directories are created automatically. If no file extension is present, .asc or .blf is appended based on format.