[New-bugs-announce] [issue45682] Nicer default logging format

Olaf van der Spek report at bugs.python.org
Sun Oct 31 09:55:19 EDT 2021


New submission from Olaf van der Spek <olafvdspek at gmail.com>:

The default logging format will print something like: 
WARNING:root:Hello Python!

Could it default to something like this instead?

2021-10-31 14:52:36,490 WARNING: Hello Python!

logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s')
logging.warning('Hello Python!')

----------
components: Library (Lib)
messages: 405403
nosy: olafvdspek
priority: normal
severity: normal
status: open
title: Nicer default logging format
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45682>
_______________________________________


More information about the New-bugs-announce mailing list