feat: 为紧凑日志格式添加 method 和 duration 颜色#88
Merged
Merged
Conversation
- GET→绿, POST→青, PUT→黄, DELETE→红 - provider 灰色降权 - duration 按阈值着色 (<1s灰, 1-5s黄, >5s红) - 更新测试断言以匹配新的 ANSI 色码位置
bigmanBass666
marked this pull request as ready for review
July 18, 2026 17:32
bigmanBass666
enabled auto-merge (squash)
July 18, 2026 17:40
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.
变更内容
为 的终端日志输出添加颜色增强:
测试
小插曲
这次改代码过程中暴露了 工具的使用坑:Go 源码中的
\n在 JSON 参数中需要写成\n(双重转义),已更新到代理规则 。