mendhak / mendhak/docker-http-https-echo
Option to change log format to JSON
還沒有人認領這個 Issue。
- 主要語言
- Shell
- 星號
- 792
- 分支
- 152
- 平均合併
- 3 天 18 小時
- 30 天內合併 PR
- 3
描述
First off, thank you for putting in the work. This is a super helpful project.
I would appreciate it if it was possible to enable an option besides LOG_WITHOUT_NEWLINE and DISABLE_REQUEST_LOGS to have one line per request in the log output formatted as JSON.
One of the reasons is that I don't use the logs on the host machine directly. They might get scraped and processed out of order by Loki, so they might not end up next to each other. The second reason is that it would be simpler to parse them when they had the same format.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先定位現有的 LOG_WITHOUT_NEWLINE 和 DISABLE_REQUEST_LOGS 選項,並追蹤請求記錄路徑。新增一種可選的 JSON 格式,讓每個請求輸出一行,然後確認輸出始終可解析,並保留所要求的記錄資訊。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- docker, shell
- 領域
- observability
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100