log, levels
log
Defines the level of detail for logging information to the console.
Possible values:
fatal: Only messages of thefatalcategory will be displayed. These are errors that prevent the system from functioning.error: Only messages of theerrorcategory will be displayed. There are very few of this type of message.warn: Includeserror, additionally shows messages of thewarncategory.info: Includeswarn, additionally shows messages of theinfocategory.debug: Includesinfo, additionally shows messages of thedebugcategory. This is necessary for error analysis.trace: Includesdebug, additionally shows messages of thetracecategory. 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, whereXis numbered according to the order ofloadpointsconfiguration (charging points), starting at1sma: The SMA HEMS component if SMA Sunny Home Manager 2.0 is integrated usinghemsvehicle: Eachvehicle(vehicle), where you must specify the corresponding value of thetypeparameter (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