Add logging configuration based on BasicConfig in main function

This commit is contained in:
ZiWei
2025-10-14 21:02:15 +08:00
parent 1ca1792e3c
commit 9149155232
2 changed files with 11 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ import base64
import traceback
import os
import importlib.util
from typing import Optional
from typing import Optional, Literal
from unilabos.utils import logger
@@ -18,6 +18,7 @@ class BasicConfig:
vis_2d_enable = False
enable_resource_load = True
communication_protocol = "websocket"
log_level: Literal['TRACE', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] = "DEBUG" # 'TRACE', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'
@classmethod
def auth_secret(cls):