Author: manik.surtani(a)jboss.com
Date: 2009-01-23 08:55:58 -0500 (Fri, 23 Jan 2009)
New Revision: 7592
Modified:
core/branches/flat/src/main/java/org/horizon/factories/ComponentRegistry.java
Log:
Logging
Modified: core/branches/flat/src/main/java/org/horizon/factories/ComponentRegistry.java
===================================================================
---
core/branches/flat/src/main/java/org/horizon/factories/ComponentRegistry.java 2009-01-23
13:53:15 UTC (rev 7591)
+++
core/branches/flat/src/main/java/org/horizon/factories/ComponentRegistry.java 2009-01-23
13:55:58 UTC (rev 7592)
@@ -21,7 +21,7 @@
GlobalComponentRegistry globalComponents;
String cacheName;
- Log log;
+ Log log = LogFactory.getLog(ComponentRegistry.class);
/**
* Creates an instance of the component registry. The configuration passed in is
automatically registered.
@@ -35,8 +35,6 @@
try {
this.cacheName = cacheName;
if (cacheName == null) throw new ConfigurationException("Cache name cannot
be null!");
- StringBuilder sb = new
StringBuilder(ComponentRegistry.class.getName()).append(cacheName);
- this.log = LogFactory.getLog(sb.toString());
if (globalComponents == null) throw new
NullPointerException("GlobalComponentRegistry cannot be null!");
this.globalComponents = globalComponents;
Show replies by date