Files
intelligence_system/test/日志测试.py
T
2025-08-06 10:54:08 +08:00

13 lines
262 B
Python

# 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()