i have code like this :
catch (Exception ex) { // Log the error ex.printStackTrace(); logger.error("Error in Best Quo