Remove unnecessary construction of logging.Formatter in docs

This commit is contained in:
Rapptz 2022-06-13 17:13:21 -04:00
parent 2b9e43dbf9
commit 9c9703efc4

View File

@ -60,7 +60,6 @@ More advanced setups are possible with the :mod:`logging` module. The example be
maxBytes=32 * 1024 * 1024, # 32 MiB
backupCount=5, # Rotate through 5 files
)
formatter = logging.Formatter()
dt_fmt = '%Y-%m-%d %H:%M:%S'
formatter = logging.Formatter('[{asctime}] [{levelname:<8}] {name}: {message}', dt_fmt, style='{')
handler.setFormatter(formatter)