[set] setup logger
This commit is contained in:
parent
124d17170d
commit
98bf36ec00
@ -1,3 +1,16 @@
|
|||||||
__version__ = "0.6.5"
|
__version__ = "0.6.5"
|
||||||
|
# >>> patch : F.11.22
|
||||||
|
|
||||||
# update patch : F.11.22
|
import time
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logging.basicConfig(
|
||||||
|
filename='bot.logs',
|
||||||
|
level=logging.INFO,
|
||||||
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||||
|
)
|
||||||
|
logging.getLogger("yt_dlp").setLevel(logging.ERROR)
|
||||||
|
logging.getLogger("pyrogram").setLevel(logging.ERROR)
|
||||||
|
logging.getLogger("PyTgCalls").setLevel(logging.ERROR)
|
||||||
|
|
||||||
|
LOGS = logging.getLogger(__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user