Skip to content
Discussion options

You must be logged in to vote

The logger is used when a 5xx error occurs to capture the stacktrace. 4xx errors aren't logged as they are caused and fixed by user behaviour. There is (usually) no need to log the cause or a 404 etc as it is known why that has happened, the route called doesn't exist etc.

As 5XXs are often unexpected being able to trace the root cause is more viable.

Replies: 2 comments 3 replies

Comment options

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

@j-4ck
Comment options

@EdgyEdgemond
Comment options

Answer selected by j-4ck
Comment options

You must be logged in to vote
0 replies
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