Skip to content

Option to restrict logging further #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
klasvo opened this issue May 7, 2025 · 1 comment
Open

Option to restrict logging further #80

klasvo opened this issue May 7, 2025 · 1 comment

Comments

@klasvo
Copy link

klasvo commented May 7, 2025

Hi,

it would be nice if there was an option to restrict logging further:

  • either completely deactivate logging
  • specify more than one path with LOG_IGNORE_PATH

The latter could be implemented by doing a regex match instead of a string comparison.

Without requests being logged, one could assure that no personal or secret data gets leaked.

Cheers
Volker

@mendhak
Copy link
Owner

mendhak commented May 10, 2025

I've got a PR going and also published a temporary tag to Docker Hub if you want to test:

docker pull mendhak/http-https-echo:issue80

Examples:

# Ignore a single path    
docker run -e LOG_IGNORE_PATH=/ping -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:issue80
# Ignore multiple paths
docker run -e LOG_IGNORE_PATH="^\/ping|^\/health|^\/metrics" -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:issue80
# Ignore all paths
docker run -e LOG_IGNORE_PATH=".*" -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:issue80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants