Closed Nekmo closed 1 year ago
Hm.. I haven't decided whether this is a brilliant or terrible idea :)
On one hand, you get access of all the standard python logging options, with file rotation, syslog, etc.
On the other hand, configuration of this is a lot more complicated than it needs to be. The end user shouldn't need to care about logging handlers, or reading the Python documentation.
Thanks again Gustavo for the commit of #82 !! I think this one #33 is just the same ... and can be set to solved? Greetings from Germany, Andreas.
Not exactly the same, but there's some overlap, I guess.
Anyway, this one is more complicated.
I am going to close due to its complexity. I don't think re-configuring Python logging independently for every job is a good fit.
Hi,
I would like to write the successful executions to a file, but I think it would be better to support logging to configure logs. In the Python documentation there is an example in Yaml:
https://docs.python.org/3/howto/logging.html#configuring-logging https://docs.python.org/3/library/logging.config.html#dictionary-schema-details
It is only necessary to configure a handler and a format. Loggers can be dynamically created from jobs.
My proposal:
Supporting the logging module allows to use many other handlers such as rsyslog.