<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -81,9 +81,17 @@ public class LoggingToolFactory {
      */
     @TestMethod(&quot;testCreateLoggingTool&quot;)
     public static ILoggingTool createLoggingTool(Class&lt;?&gt; sourceClass) {
+        ILoggingTool tool = initializeLoggingTool(
+            sourceClass, DEFAULT_LOGGING_TOOL_CLASS
+        );
+        return tool;
+    }
+
+    private static ILoggingTool initializeLoggingTool(
+        Class&lt;?&gt; sourceClass, String className) {
         try {
             Class&lt;?&gt; possibleLoggingToolClass = sourceClass.getClassLoader()
-               .loadClass(DEFAULT_LOGGING_TOOL_CLASS);
+               .loadClass(className);
             if (ILoggingTool.class.isAssignableFrom(possibleLoggingToolClass)) {
                 Method createMethod = possibleLoggingToolClass.getMethod(
                     &quot;create&quot;, Class.class</diff>
      <filename>src/main/org/openscience/cdk/tools/LoggingToolFactory.java</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>112f64d6a08feb07cf8c133211a65e3a03a794ca</id>
    </parent>
  </parents>
  <author>
    <name>Egon Willighagen</name>
    <email>egonw@users.sourceforge.net</email>
  </author>
  <url>http://github.com/egonw/cdk/commit/2af5f247fb9d537259287bdcbf242155bbe8afaf</url>
  <id>2af5f247fb9d537259287bdcbf242155bbe8afaf</id>
  <committed-date>2009-11-03T19:59:57-08:00</committed-date>
  <authored-date>2009-07-03T14:00:54-07:00</authored-date>
  <message>Factored out initialization of the tool, to allow reusing the code for other logger class names

Signed-off-by: Rajarshi Guha &lt;rajarshi.guha@gmail.com&gt;</message>
  <tree>ca142da211dce68f3e912cc25ab4598db4a33367</tree>
  <committer>
    <name>Rajarshi  Guha</name>
    <email>rajarshi.guha@gmail.com</email>
  </committer>
</commit>
