I’m using HABApp version 0.31.2 in my Habian installation. As I run into some issues I’d like some way of debugging my code.
From the documentation I gathered that this can be done through using a default logger or plain and simple print-statements from the code. My problem is that my rules are working (e.g. a switched is turned off in a rule), yet not a single line will be printed.
I’ve tried a number of things, such as:
Debug using print statements
Debug using log.* - statements
Upping the log level to DEBUG
Adding custom loggers / handlers
All to no avail. Am I missing something here? Any help is greatly appreciated!
So there’s a number of lines that should print something. The habapp_autopresence.log-file is created on starting habapp, but it stays empty forever. Both the application log and the event log are appended with new info, just not the info I’m expecting…
The handler defines the available files, you also have to add a logger in the logging.yml.
In your case the logger name would be AutoPresence.
Please check the documentation how to create the logger.