python-json-logger icon indicating copy to clipboard operation
python-json-logger copied to clipboard

Remove default 'message' field

Open Voyz opened this issue 4 years ago • 0 comments

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?

Voyz avatar Nov 03 '21 12:11 Voyz