madzak / python-json-logger

Json Formatter for the standard python logger
BSD 2-Clause "Simplified" License
1.7k stars 231 forks source link

Default logger with full output #135

Open Thomasillo opened 2 years ago

Thomasillo commented 2 years ago

It would be nice to have a default formatter (Inheriting from JsonFormatter) which includes all possible logRecord fields in the formatted json without the need to specify them explicitly.. This way you don't have to specify all field names manually in your logging configuration. Which is also not advantageous because you have two sources of truth then (your configuration file and pythonjsonlogger resp the stdlib logging module.).