log.debug("About to do something."); try { //call something that throws an exception } catch (Exception e) { log.error("An exception occured doing something.", e); } log.info("Successfully did something.");