Does anybody know how to put e.printStackTrace() in logger methods.
// exception code here
e.printStackTrace(); ==> I want to put this stack trace in Java Logger.
logger.debug(e.getMessage()) - my requirement is to put whole log message inside logger methods.
Can someone help if they worked on such requirements?