pub fn init_logging() -> Result<(), Box<dyn Error>>
初始化日志系统
根据环境变量配置日志系统,支持输出到 stderr 和文件。
如果日志系统初始化失败,返回错误信息。