AB-Law / AB-Law/QuietStories

[Feature]: Logging modes

未关闭
#51 0 条评论 1 个 reaction 已指派 1 人 已指派给 @Copilot 在 GitHub 查看
enhancement
主要语言
Python
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

### Is your feature request related to a problem? Please describe.

Right now, the application logs are not easy to read or control. Everything is printed at the same level, which makes it difficult to debug, identify errors quickly, or reduce noise during normal usage. It would be helpful to have more structured and configurable logging so development and troubleshooting become easier.

### Describe the solution you'd like

I’d like to introduce configurable logging modes/levels such as:

ERROR – only log failures

WARN – potential issues

INFO – general application flow

DEBUG – detailed runtime information

VERBOSE / TRACE – full step-by-step logs for troubleshooting

This could be set through a CLI flag, config file, or environment variable (e.g. LOG_LEVEL=debug). Ideally, logs should also include timestamps and source modules for better traceability.

This PR should also add more logging, especially in verbose mode. I should be able to see the LLM calls, what's being sent and received.

### Describe alternatives you've considered

_No response_

### Additional context

This feature would make it easier to debug tool calls, API latency, and state updates during complex executions. It would also improve developer experience when integrating the repo into larger projects.

### Would you like to contribute this feature?

- [ ] Yes, I would like to implement this feature

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。