(no commit message)
[utils] / support / general / src / main / java / org / wamblee / ioc / BeanKernel.java
index 3118b5d5344856882131e1f0f15193dd82da35f9..54f7b3f3567bb43dd427ec38487fa44943fee27d 100644 (file)
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.wamblee.ioc;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
 import org.wamblee.io.ClassPathResource;
 import org.wamblee.io.InputResource;
 
@@ -25,6 +22,8 @@ import java.io.IOException;
 import java.io.InputStream;
 
 import java.util.Properties;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
 /**
  * The standard means to obtain the bean factory. This works by reading a
@@ -34,7 +33,8 @@ import java.util.Properties;
  * a no-arg constructor.
  */
 public final class BeanKernel {
-    private static final Log LOG = LogFactory.getLog(BeanKernel.class);
+    private static final Logger LOG = Logger.getLogger(BeanKernel.class
+        .getName());
 
     /**
      * Bean factory kernel properties file.
@@ -120,7 +120,7 @@ public final class BeanKernel {
                 is.close();
             } catch (IOException e) {
                 // last resort cannot do much now.
-                LOG.error("Error closing resource " + resource);
+                LOG.log(Level.WARNING, "Error closing resource " + resource, e);
             }
         }
     }