mirror of
https://github.com/yawaflua/AoyoBot.git
synced 2025-12-08 19:39:32 +02:00
Update log.py
This commit is contained in:
committed by
GitHub
parent
bede71f93d
commit
04e7afba2d
3
log.py
3
log.py
@@ -10,7 +10,8 @@ logging.basicConfig(format=formatter)
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
global rootLogger
|
||||
|
||||
|
||||
with open(main_path+"DISCORD_LOG.txt", "r+") as f:
|
||||
f.close()
|
||||
fileHandler = logging.FileHandler("{0}/{1}.txt".format(f'{main_path}/logs', 'DISCORD_LOG'))
|
||||
fileHandler.setFormatter(logFormatter)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user