From 5d13272dabc70320c8f54571753141312303d50d Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:18:57 +0700 Subject: [PATCH] setup --- system/loggings.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 system/loggings.py diff --git a/system/loggings.py b/system/loggings.py new file mode 100644 index 0000000..8710c0f --- /dev/null +++ b/system/loggings.py @@ -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__)