Skip to content

Commit

Permalink
feat: add environ log for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
LaoshuBaby committed Apr 2, 2024
1 parent 0fe743f commit 4852459
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/yuheng/basic/log.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os

from .const import YUHENG_CORE_NAME, YUHENG_VERSION
from .environment import get_yuheng_path
from hellologger import get_logger

Expand All @@ -25,4 +25,14 @@
**{**log_config_local, **log_config_aliyun},
)
# logger.disable("yuheng")
fence_length = 30
logger.info("[Yuheng] Start logging!")
logger.debug(
"\n"
+ ("=" * fence_length + "\n")
+ "[Yuheng] Environment Info!\n"
+ ("=" * fence_length + "\n")
+ f"YUHENG_CORE_NAME : {YUHENG_CORE_NAME}\n"
+ f"YUHENG_VERSION : {YUHENG_VERSION}\n"
+ ("=" * fence_length + "\n")
)

0 comments on commit 4852459

Please sign in to comment.