Help me figure out whether it is possible in the logging to somehow set up a different formatter for INFO and ERROR, but for the same handler. Below is an example of what I would like to get in theory. In practice, such a record is invalid, since the key must be unique.
"formatters": { "simple": { "format": "%(asctime)s - %(name)s - %(funcName)s - %(levelname)s - %(lineno)d - %(message)s" "level": "ERROR", }, "simple": { "level": "INFO", "fmt": "%(asctime)s - %(message)s" } }