@Test
public void testLogError() throws Exception {

    assertNotNull(logger);
    File newLogFile = configureLogPath(logger);
    String msg = "This is a exception test";
    Exception testException = new Exception("This is a test exception");
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    testException.printStackTrace(pw);
    logger.error(msg, testException);
    String fileMsg = retrieveLogContents(newLogFile);
    System.out.println("The File Message: " + fileMsg);
    assertTrue(fileMsg.contains("ERROR " + KLogger.class.getName() + "  - " + msg));
    assertTrue(fileMsg.contains(msg));
}