video-stream/system/loggings.py

17 lines
408 B
Python
Raw Normal View History

2021-10-11 03:18:57 +00:00
# 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__)