./mockpoint
    Download

    Output Formats

    mockpoint supports multiple output formats for different use cases.

    Human-Readable Logs (Default)

    By default, mockpoint outputs colored, structured logs to stderr:

    log
    2026-01-10T00:25:00Z  INFO mockpoint starting up...
    2026-01-10T00:25:00Z  INFO Loading scenario from: scenarios/basic.yaml
    2026-01-10T00:25:00Z  INFO Loaded scenario: 'Basic Loading' with 2 chargers
    2026-01-10T00:25:00Z  INFO Target CSMS: ws://localhost:6602/ocpp

    JSON Logs

    Use the --json flag to output JSON Lines format for automated processing:

    bash
    mockpoint run scenario.yaml --json

    Output:

    json
    {"timestamp":"2026-01-10T00:25:00Z","level":"INFO","message":"mockpoint starting up..."}
    {"timestamp":"2026-01-10T00:25:00Z","level":"INFO","message":"Loading scenario from: scenarios/basic.yaml"}

    Related Topics

    Was this page helpful?