Is there any known approach for logging different information depending on the exception type?
The idea would be only log relevant information per exception type. eg: known exceptions/business logic exceptions don't need a stack trace logged, since they are "expected"
Basically what I'm asking is if there are any known practices while logging exceptions to make the log as helpful as possible w/o any trash.
You can filter in the
<rules>
, e.g.See when filter and conditions docs.