You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ShortenedThrowableConverter currently allows setting a hard limit on the number of stack trace elements to print (cfr. maxDepthPerThrowable property). Additional elements will not be output and a message indicating how many elements were truncated will be printed instead.
The exact desired length of the stack trace may not always been known up-front and may depend on the stack trace itself. To deal with this situation, it may be desirable to truncate after a line found based on a regex pattern. For instance, users may want to truncate everything below the Spring DispatcherServlet because this information doesn't provide any additional value to them...
The
ShortenedThrowableConverter
currently allows setting a hard limit on the number of stack trace elements to print (cfr.maxDepthPerThrowable
property). Additional elements will not be output and a message indicating how many elements were truncated will be printed instead.The exact desired length of the stack trace may not always been known up-front and may depend on the stack trace itself. To deal with this situation, it may be desirable to truncate after a line found based on a regex pattern. For instance, users may want to truncate everything below the Spring
DispatcherServlet because
this information doesn't provide any additional value to them...This would be configured as follows:
Everything after the "DispatcherServlet" log line will be truncated and replaced by the usual "frames truncated" message.
The text was updated successfully, but these errors were encountered: