log更新

This commit is contained in:
2025-08-06 10:54:08 +08:00
parent c2a941d4f5
commit 69deb0cd39
4 changed files with 24 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
# test_logger.py
from utils.logger import log
import platform
def test_logging():
log.info(f"当前系统: {platform.system()}")
try:
1/0
except:
log.error("除零错误", exc_info=True)
if __name__ == "__main__":
test_logging()