madzak / python-json-logger

Json Formatter for the standard python logger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove default 'message' field

Voyz opened this issue · comments

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?