This commit is contained in:
Vitaly committed 2023-09-05 14:00:40 +03:00
commit 4716effcf7
309 files changed
+153369

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import sys
from pathlib import Path
from loguru import logger
BASE_LOG = Path(__file__).parent.parent.joinpath("logs")
logger.level("TRASH", no=38, color="<blue>")
logger.add(BASE_LOG.joinpath("errors.log"), level="ERROR", backtrace=True, diagnose=True, rotation="1 week", compression="zip")