User's Guide

Logging
Logging to the console
Components of the OVMS system output diagnostic logs (information, warnings, etc). You can
choose to display these logs on your connected console with the ‘log monitor yes/no’ command:
OVMS# log monitor ?
Usage: log monitor [no|yes]
no Don't monitor log
yes Monitor log
By default, the async (USB) console will have log monitoring ‘yes’, but the others ‘no’. Note: the
web shell does not support log monitoring yet.
Logs are output at various levels of verbosity, and you can control what is shown both globally
and on a per-component basis:
OVMS# log level ?
debug Log at the DEBUG level (4)
error Log at the ERROR level (1)
info Log at the INFO level (3)
none No logging (0)
verbose Log at the VERBOSE level (5)
warn Log at the WARN level (2)
The syntax of this command is ‘log level <level> [<component>]’. If the component is not
specified, it applies to all components that haven’t had a level set explicitly. The levels increase
in verbosity, and setting a particular level will also include all log output at a lower level of
verbosity (so, for example, setting level ‘info’ will also include ‘warn’ and ‘error’ output).
A log line typically looks like this:
I (32244049) ovms-server-v2: One or more peers have connected
│ │ │ └─ Log message
│ │ └─ Component name
│ └─ Timestamp (milliseconds since boot)
└─ Log level (I=INFO)
OVMS v3 User Guide Page 28 / 86