mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Remove unnecessary construction of logging.Formatter in docs
This commit is contained in:
parent
2b9e43dbf9
commit
9c9703efc4
@ -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…
x
Reference in New Issue
Block a user