Browse Source

Remove unnecessary construction of logging.Formatter in docs

pull/8150/head
Rapptz 3 years ago
parent
commit
9c9703efc4
  1. 1
      docs/logging.rst

1
docs/logging.rst

@ -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)

Loading…
Cancel
Save