You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you for making this available. I have absolutely everything defined in code and would not be able achieve the level of control I have in my automation.
I think there may be an issue with the log() method. I have been trying to log DEBUG level messages to the logging. DEBUG and NOTSET do not appear to be logged even if the log level is explicitly set. All the other levels work OOTB.
There is DEBUG output present in the logfile but these come from appdaemon itself.
Relevant code in the app or config file that caused the issue
runtime = datetime.time(0, 0, 0)
self.set_log_level('DEBUG') # or NOTSET
self.run_minutely(self.log_test, runtime)
def log_test(self, kwargs):
forlevelin ['CRITICAL','ERROR','WARNING','DEBUG','NOTSET','INFO']: # INFO comes last to ensure we have a final successfully logged entry
self.log(f'testing {level}', level=level)
Anything else?
Also I think there is a documentation error. The docs say that the default level is WARNING. I believe it should be INFO.
The text was updated successfully, but these errors were encountered:
@acockburn I have just noticed that my logging entries are being added if I list the container log directly. Initially I was using the web interface and they are definitely not shown there. Presumably you choose to ignore these because it can be a bit too much at times, especially if you configure to run hourly or minutely.
Is there a way to configure the log level in the web interface?
What happened?
Firstly, thank you for making this available. I have absolutely everything defined in code and would not be able achieve the level of control I have in my automation.
I think there may be an issue with the
log()
method. I have been trying to logDEBUG
level messages to the logging.DEBUG
andNOTSET
do not appear to be logged even if the log level is explicitly set. All the other levels work OOTB.There is
DEBUG
output present in the logfile but these come from appdaemon itself.Version
4.4.2
Installation type
Docker container
Relevant log output
Relevant code in the app or config file that caused the issue
Anything else?
Also I think there is a documentation error. The docs say that the default level is
WARNING
. I believe it should beINFO
.The text was updated successfully, but these errors were encountered: