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

Question: Only log on Error/Exception #1911

Open
OllisGit opened this issue Sep 22, 2024 · 1 comment
Open

Question: Only log on Error/Exception #1911

OllisGit opened this issue Sep 22, 2024 · 1 comment
Labels

Comments

@OllisGit
Copy link

First: Thx, for this nice toolkit.

After enabling logbook via: logging.level.org.zalando.logbook: TRACE
All incoming and outgoing requests/responses are logged,
but I want to log only error-calls.

So, 5xx response-codes (and also exception, if the json-mapping failed).

Any idea how I can realised that.

Thanks in advance
Olli

@whiskeysierra
Copy link
Collaborator

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