log, levels
log
Defines the level of detail for logging information to the console.
Possible values:
fatal
: Only messages of thefatal
category will be displayed. These are errors that prevent the system from functioning.error
: Only messages of theerror
category will be displayed. There are very few of this type of message.warn
: Includeserror
, additionally shows messages of thewarn
category.info
: Includeswarn
, additionally shows messages of theinfo
category.debug
: Includesinfo
, additionally shows messages of thedebug
category. This is necessary for error analysis.trace
: Includesdebug
, additionally shows messages of thetrace
category. This is the most detailed category and can result in very large log data. In general, this is not usually needed!
When running evcc in the console, the log
messages are simply directed to the standard output.
If evcc is run as a Linux systemd service, messages can be tracked using sudo journalctl -fau evcc
, see Logfile zur Fehleranalyse.
In the case of a Docker installation, you can view the messages using docker logs
, see Docker Documentation.
For example:
log: error
levels
Allows configuring different logging levels for various components of evcc.
Defines the level of detail for logging for different evcc components.
Possible components:
site
: The central evcc component (control, calculations, ...)lp-X
: The respective charging point, whereX
is numbered according to the order ofloadpoints
configuration (charging points), starting at1
sma
: The SMA HEMS component if SMA Sunny Home Manager 2.0 is integrated usinghems
vehicle
: Eachvehicle
(vehicle), where you must specify the corresponding value of thetype
parameter (or template).- Additionally, depending on the use case, additional components can be specified (e.g.
cache
,db
,influx
,mqtt
, ...)
Possible values for each component: Identical to the values of log
For example:
levels:
site: debug
lp-1: debug
lp-2: debug
tesla: trace