https://docs.python.org/3.7/library/logging.html#logging.Logger.debug
https://docs.python.org/3.7/library/logging.html#logging.Formatter.format
Basically your Formatter string doesn't include %(anotherfield1)s in it
anywhere, so that gets ignored. To have a variable number of those in there
you
shradha...@gmail.com wrote:
> I am using for my logger
>
> handler.setFormatter(SimpleJsonFormatter(json.dumps))
Where does SimpleJsonFormatter come from?
If it uses the json.dumps argument to serialize a dict you may pass a
modified version instead:
# untested
KEYS_TO_IGNORE = {"fields", "yo