Update log.py

This commit is contained in:
Dima yawaflua Andreev
2024-05-08 03:41:14 +03:00
committed by GitHub
parent bede71f93d
commit 04e7afba2d

3
log.py
View File

@@ -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)