I’m trying to get my app to write to it’s own log.
I have the logs set like this in the config file:
logs:
error_log:
filename: /config/logs/error.log
main_log:
filename: /config/logs/main.log
access_log:
filename: /config/logs/access.log
security_lights:
name: security_lights_log
filename: /config/logs/security_lights.log
hello:
name: hello_log
filename: /config/logs/hello.log
Which gives me this:
The main log does get written to when restarting appdaemon, for example, and I can see all of the configured logs in the web ui dropdown.
I have this in my app which has the file name security_lights.py:
class SecurityLights(hass.Hass):
def initialize(self):
self.log("SecurityLights INITIALIZE MARKER 12345", level="DEBUG")
I’m not seeing anything being written into the security_lights log.
The app works great, I just can’t get the logs to write.
Am I missing some configuration somewhere?
