mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-06 18:11:59 +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
|
maxBytes=32 * 1024 * 1024, # 32 MiB
|
||||||
backupCount=5, # Rotate through 5 files
|
backupCount=5, # Rotate through 5 files
|
||||||
)
|
)
|
||||||
formatter = logging.Formatter()
|
|
||||||
dt_fmt = '%Y-%m-%d %H:%M:%S'
|
dt_fmt = '%Y-%m-%d %H:%M:%S'
|
||||||
formatter = logging.Formatter('[{asctime}] [{levelname:<8}] {name}: {message}', dt_fmt, style='{')
|
formatter = logging.Formatter('[{asctime}] [{levelname:<8}] {name}: {message}', dt_fmt, style='{')
|
||||||
handler.setFormatter(formatter)
|
handler.setFormatter(formatter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user