i was wondering whether it is possible or not to log the first line of a particular exception in my program (ex DataAccessException). According to Log4j formatting: Is it possible to truncate stacktraces? we can truncate exceptions. Is it possible to apply this restriction to only one exception, using log4j2?
Thanks in advance.