This commit is contained in:
levina 2021-10-11 10:18:57 +07:00 committed by GitHub
parent 825a21adb5
commit 5d13272dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
system/loggings.py Normal file
View File

@ -0,0 +1,16 @@
# Copyright (C) 2021 By VeezMusicProject
import logging
import time
logging.basicConfig(
filename='bot.log',
level=logging.INFO,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
logging.getLogger("pyrogram").setLevel(logging.ERROR)
logging.getLogger("PyTgCalls").setLevel(logging.WARNING)
logging.getLogger("yt_dlp").setLevel(logging.WARNING)
LOG = logging.getLogger(__name__)