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

suppress some server logs #10496

Open
tooptoop4 opened this issue Feb 10, 2023 · 0 comments
Open

suppress some server logs #10496

tooptoop4 opened this issue Feb 10, 2023 · 0 comments
Labels

Comments

@tooptoop4
Copy link
Contributor

tooptoop4 commented Feb 10, 2023

i am interested in most logs like who logged in and what they clicked on but want to suppress these:

time="2023-02-10T04:04:06.868Z" level=info duration="108.602µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:26.868Z" level=info duration="99.842µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:26.868Z" level=info duration="76.141µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:45.138Z" level=info duration="100.382µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:45.463Z" level=info duration="106.572µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:46.478Z" level=info duration="100.362µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:46.531Z" level=info duration="100.941µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:46.868Z" level=info duration="107.773µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:47.102Z" level=info duration="97.922µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:47.283Z" level=info duration="103.831µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:53.071Z" level=info duration="212.254µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:53.819Z" level=info duration="94.782µs" method=GET path=index.html size=473 status=0
time="2023-02-10T04:04:55.440Z" level=info duration="339.266µs" method=GET path=index.html size=473 status=0

"path": r.URL.Path, // log the path not the URL, to avoid logging sensitive data that could be in the query params

@tooptoop4 tooptoop4 added the type/feature Feature request label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants