• Start a main-process bus log recording to an ASC or BLF file.

    Parameters

    Returns Promise<LogRecorder>

    Promise resolving to a LogRecorder handle with the resolved file path and a stop() method.

    If the path/format is invalid, lin: true is requested for BLF, neither can nor lin is enabled, a specified device does not exist, or no active matching devices are available.

    const logger = await startLog('logs/tc_01.blf')
    // ... execute test ...
    await logger.stop()
    const logger = await startLog({
    path: 'logs/tc_02.asc',
    devices: ['CAN1'],
    can: true
    })
    // ... execute test ...
    await stopLog(logger)