Skip to content
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

Feature request: Add logging for http request headers #2004

Open
dc-95 opened this issue Nov 23, 2023 · 0 comments
Open

Feature request: Add logging for http request headers #2004

dc-95 opened this issue Nov 23, 2023 · 0 comments

Comments

@dc-95
Copy link

dc-95 commented Nov 23, 2023

Hi there, i was wondering if its possible to include headers in the logger details that yopass server is currently outputting.

Currently looks like this: {"level":"info","ts":1700707372.440065,"caller":"server/logging.go:42","msg":"Request handled","host":"xx.xxxxx.xxx","timestamp":1700707372.4399774,"method":"GET","uri":"/","protocol":"HTTP/1.1 │ │ ","responseStatus":200,"responseSize":1057}

Maybe a new key with header details make sense. wdyt?

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

1 participant