I am upgrading log4j 1 to log4j 2. I have a custom appender created in log4j1 and in append(LoggingEvent event) method I retrieve error stack trace using event.getThrowableStrRep() and append '\t' for each line.
I don't see getThrowableStrRep in log4j2. Could you please help me out how we can do this in log4j2?