I have a situation in which I want to print all the exception caught in catch block using logger.
try { File file = new File(\"C:\\\\className\").mkdir(
Try to log the stack trace like below:
logger.error("Exception :: " , e);