feat: stdout 精简模式 — akswitch start --log-format=compact#33
Merged
Conversation
新增 --log-format 标志,支持 default(完整格式)和 compact(精简): - proxy request → [22:45:53] → POST /v1/messages (392KB) - proxy success → [22:45:53] 200 sensenova (key: name) - non-retryable client error → [22:45:53] ✗ 400 POST /v1/messages - 其他消息保持原样 文件日志不受影响,始终保持完整格式。
bigmanBass666
marked this pull request as ready for review
July 16, 2026 17:37
bigmanBass666
pushed a commit
that referenced
this pull request
Jul 16, 2026
Python 替换因 CRLF 行尾不匹配,init() 中缺少
startCmd.Flags().String("log-format", ...) 注册行。
bigmanBass666
added a commit
that referenced
this pull request
Jul 16, 2026
* fix: 补上 --log-format 标志注册(PR #33 遗漏) Python 替换因 CRLF 行尾不匹配,init() 中缺少 startCmd.Flags().String("log-format", ...) 注册行。 * test: 新增 --log-format 标志注册测试 * chore: 清理 go.mod 中未使用的 spf13/viper 直接依赖及其间接依赖链(13个包,33行) --------- Co-authored-by: wingIsCrazy <wingiscrazy@qq.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.
为 ak switch start 新增 --log-format 标志 (default|compact)。