mirror of
https://github.com/yawaflua/AoyoBot.git
synced 2025-12-09 03:49:30 +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)
|
logging.basicConfig(level=logging.INFO)
|
||||||
global rootLogger
|
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 = logging.FileHandler("{0}/{1}.txt".format(f'{main_path}/logs', 'DISCORD_LOG'))
|
||||||
fileHandler.setFormatter(logFormatter)
|
fileHandler.setFormatter(logFormatter)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user