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

Give users control over what and how logging happens in the middlewares #472

Merged
merged 21 commits into from
Aug 17, 2024

Conversation

komuw
Copy link
Owner

@komuw komuw commented Aug 17, 2024

  • Users can be able to disable logging completely in the middleware by using a logFunc that does nothing.
    It is not yet possible to disable logging in the server, the main issue to solve is what to do with http.Server.Errorlog; https://github.com/komuw/ong/blob/v0.1.6/server/server.go#L127. This can be solved in the future.

@komuw komuw changed the title Log pol Give users control over what and how logging happens in the middlewares Aug 17, 2024
@komuw komuw merged commit 1d2b1f1 into main Aug 17, 2024
4 checks passed
@komuw komuw deleted the log-pol branch August 17, 2024 09:40
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

Successfully merging this pull request may close these issues.

1 participant