LoggingTool implements ILoggingTool { public static void configureLog4j() { LoggingTool localLogger = new LoggingTool(LoggingTool.class); try { org.apache.log4j.PropertyConfigurator.configure(LoggingTool.class .getResource("/org/openscience/cdk/config/data/log4j.properties")); } catch (NullPointerException e) { localLogger.error("Properties file not found: ", e.getMessage()); localLogger.debug(e); } catch (Exception e) { localLogger.error("Unknown error occurred: ", e.getMessage()); localLogger.debug(e); } } LoggingTool();  LoggingTool(Object object);  LoggingTool(Class<?> classInst); static void configureLog4j(); @Override void dumpSystemProperties(); @Override void setStackLength(int length); @Override void dumpClasspath(); @Override void debug(Object object); @Override void debug(Object object, Object... objects); @Override void error(Object object); @Override void error(Object object, Object... objects); @Override void fatal(Object object); @Override void info(Object object); @Override void info(Object object, Object... objects); @Override void warn(Object object); @Override void warn(Object object, Object... objects); @Override boolean isDebugEnabled(); static ILoggingTool create(Class<?> sourceClass); @Override void setLevel(int level); @Override int getLevel(); final int DEFAULT_STACK_LENGTH; }
@Test public void testConfigureLog4j() throws Exception { LoggingTool.configureLog4j(); }