mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Add utils.setup_logging to help set up logging outside of Client.run
This commit is contained in:
@ -75,6 +75,9 @@ async def main():
|
||||
handler.setFormatter(formatter)
|
||||
logger.addHandler(handler)
|
||||
|
||||
# Alternatively, you could use:
|
||||
# discord.utils.setup_logging(handler=handler, root=False)
|
||||
|
||||
# One of the reasons to take over more of the process though
|
||||
# is to ensure use with other libraries or tools which also require their own cleanup.
|
||||
|
||||
|
Reference in New Issue
Block a user