add dates to log files again
After lots of research and reading through relatively undocumented source code, I finally removed the logging
module. Unfortunately, its successor, aiologger
, doesn't really work in a backwards-compatible manner and using it has introduced a couple of small, yet still annoying, regressions. One of them is the fact that you cannot really control the way messages are formatted when you are "streaming" the output of the bot to a file.
There are two possibilities:
- Do not use
datefmt
in the handlers of the logger, includedatefmt
in the text of the message that is to be logged itself. - Implement
formatting
(which already exists for stream handlers) to file handlers as well, or find another way to emulate that behavior. This would preferably happen upstream. This will require some work/external communication with the developers of aiologger.
Edited by n0toose