Miravo

Logging

Control Miravo log levels, pretty output, JSON output, and streamed event channels.

Miravo writes operational logs to stdout and command failures to stderr. Tune output before wiring Miravo into a terminal multiplexer, container log collector, or NDJSON pipeline.

Levels

LevelSwitchWhat shows up
debug--log-level debug or --verboseTick details, adapter internals, and verbose startup traces
infoDefaultStartup, shutdown, state transitions, periodic summaries
warn--log-level warnWarnings and errors only
error--log-level error or --quietErrors only

--quiet wins over --log-level. --log-level wins over --verbose. NO_COLOR removes ANSI styling. --plain keeps the stable text layout without ANSI styling.

Output format

[engine] Environment "smart-factory" started
[mqtt]   Embedded broker listening on 127.0.0.1:1883
[engine] Tick 30 | 6 instances · 168 values | MQTT: 168 pub · 0 err
miravo start --log-level info
miravo logs --channels faults,lifecycle
{"ts":"2026-03-18T10:00:00.000Z","level":"info","tag":"engine","environmentName":"smart-factory","runId":"abc123","message":"Environment started"}
miravo start --log-format json
miravo logs --json --channels faults

Event streaming

CommandResult
miravo logsStream all channels except tick
miravo logs --tail 50Print recent events before opening the stream
miravo logs --channels faults,lifecycleRestrict the stream to selected channels
miravo logs --jsonEmit NDJSON for jq, Loki, or other consumers
miravo logs --channels faults --json | jq -r '.message'

Reference

Switch or env varEffect
--log-level <level>Select debug, info, warn, or error
--verboseShorthand for --log-level debug
--quietSuppress non-error output
--log-format jsonEmit structured JSON lines
--plainKeep plain text without ANSI styling
NO_COLOR=1Remove ANSI styling from pretty output
MIRAVO_DEBUG=1 or --debugPrint stack traces for unexpected failures

Next

Was this page useful?

Last updated on