madzak/python-json-logger

Remove default 'message' field

Voyz opened this issue · 0 comments

Voyz commented

How can I avoid including message field in every log by default?

By logging a dict like:

a = {'foo': 'bar'}
logger.info(a)

I get the following output

{'message': null, 'foo': 'bar'}

How can I avoid that message field being added?