chore(logging): 将默认日志文件路径从项目根目录迁移至 .logs/ 子目录#239
Merged
Conversation
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
将日志文件默认输出路径从项目根目录
coding-proxy.log变更为.logs/coding-proxy.log,减少项目根目录文件噪音。Changes
cli/__init__.py:默认日志路径"coding-proxy.log"→".logs/coding-proxy.log"config/server.py:同步更新LoggingConfigdocstring 中的默认值描述config.default.yaml:同步更新注释示例中的路径.gitignore:coding-proxy.log*→.logs/(整目录忽略)日志模块
logging/__init__.py已有log_file.parent.mkdir(parents=True, exist_ok=True)自动创建目录逻辑,无需额外改动。用户自定义logging.file配置不受影响。🤖 Generated with Claude Code, CodeX, Gemini