Skip to content

Prevent ContextLogger from logging bodies that are too large #1717

Answered by Romakita
CoteArthur asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @CoteArthur
By default, the body isn't logged (excepted if there is an error). Have you changed the default logger configuration?

The Catch decorator isn't responsible to filter the logged body. It's PlatformLogMiddleware the responsible and you can override it to define your own strategy.

See you
Romain

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@CoteArthur
Comment options

@Romakita
Comment options

@CoteArthur
Comment options

Answer selected by CoteArthur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants