mendhak / mendhak/docker-http-https-echo
Option to change log format to JSON
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 792
- Forks
- 152
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 3
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing LOG_WITHOUT_NEWLINE and DISABLE_REQUEST_LOGS options and tracing the request logging path. Add a selectable JSON format that emits one line per request, then verify that the output is consistently parseable and preserves the requested log information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100