w
This commit is contained in:
commit
4716effcf7
309 files changed
+153369
No files matched your search
@@ -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")
|
||||
Reference in new issue
Block a user