CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/logger DefaultLogManager.java,1.17,1.18

Peter Donald <pdonald-yCVjj/[email protected]> Sat, 29 Nov 2003 07:44:54 -0600
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/logger
In directory hogshead.codehaus.org:/tmp/cvs-serv31016/loom/engine/src/java/org/jcontainer/loom/components/logger

Modified Files:
	DefaultLogManager.java 
Log Message:
Remove email addie

Index: DefaultLogManager.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/logger/DefaultLogManager.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- DefaultLogManager.java	29 Oct 2003 21:55:26 -0000	1.17
+++ DefaultLogManager.java	29 Nov 2003 13:44:21 -0000	1.18
@@ -129,7 +129,7 @@
 /**
  * Interface that is used to manage Log objects for a Sar.
  *
- * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
+ * @author Peter Donald
  */
 public class DefaultLogManager
     extends AbstractLogEnabled
@@ -142,9 +142,7 @@
 
     private final InitialLoggerStoreFactory m_factory = new InitialLoggerStoreFactory();
 
-    /**
-     * Hold the value of loom.home
-     */
+    /** Hold the value of loom.home */
     private File m_loomHome;
 
     /**
@@ -165,9 +163,9 @@
     }
 
     /**
-     * Normalises file paths by replacing File.separatorChar with '/'
-     * and storing the path in the map in place of the File object
-     * which would be converted back to using the File.separatorChar
+     * Normalises file paths by replacing File.separatorChar with '/' and
+     * storing the path in the map in place of the File object which would be
+     * converted back to using the File.separatorChar
      *
      * @param data the Map containing the File objects
      * @return the Map with the normalised File paths
@@ -210,10 +208,11 @@
      * @return the Log hierarchy
      * @throws Exception if unable to create Loggers
      */
-    public LoggerStore createHierarchy( final org.jcontainer.dna.Configuration logs,
-                                        final File homeDirectory,
-                                        final File workDirectory,
-                                        final Map context )
+    public LoggerStore createHierarchy(
+        final org.jcontainer.dna.Configuration logs,
+        final File homeDirectory,
+        final File workDirectory,
+        final Map context )
         throws Exception
     {
         final Map map = createLoggerManagerContext( context );
@@ -284,7 +283,8 @@
                 config.put( Logger.class.getName(), logger );
                 // use the original context map as SimpleLogKitManager requires
                 // the File object in the context
-                config.put( Context.class.getName(), new DefaultContext( map ) );
+                config.put( Context.class.getName(),
+                            new DefaultContext( map ) );
                 config.put( Configuration.class.getName(),
                             ConfigurationConverter.toConfiguration( logs ) );
                 return loggerManager.createLoggerStore( config );
@@ -295,7 +295,8 @@
                 ContainerUtil.enableLogging( loggerManager, logger );
                 final HashMap config = new HashMap();
                 config.put( Logger.class.getName(), logger );
-                config.put( Context.class.getName(), new DefaultContext( normalisedMap ) );
+                config.put( Context.class.getName(),
+                            new DefaultContext( normalisedMap ) );
                 config.put( Configuration.class.getName(),
                             ConfigurationConverter.toConfiguration( logs ) );
                 return loggerManager.createLoggerStore( config );
@@ -313,17 +314,21 @@
             else
             {
                 final String message =
-                    "Unknown logger version '" + version + "' in environment.xml";
+                    "Unknown logger version '" +
+                    version +
+                    "' in environment.xml";
                 throw new IllegalStateException( message );
             }
         }
     }
 
-    private Element buildLog4JConfiguration( final org.jcontainer.dna.Configuration logs )
+    private Element buildLog4JConfiguration(
+        final org.jcontainer.dna.Configuration logs )
     {
         final Element element = ConfigurationUtil.toElement( logs );
         final Document document = element.getOwnerDocument();
-        final Element newElement = document.createElement( "log4j:configuration" );
+        final Element newElement = document.createElement(
+            "log4j:configuration" );
         final NodeList childNodes = element.getChildNodes();
         final int length = childNodes.getLength();
         for( int i = 0; i < length; i++ )
@@ -369,7 +374,8 @@
 
                 //TODO: Need to set up config files for entity resolver
                 final EntityResolver resolver =
-                    ResolverFactory.createResolver( getClass().getClassLoader() );
+                    ResolverFactory.createResolver(
+                        getClass().getClassLoader() );
                 builder.setEntityResolver( resolver );
                 final Document document = builder.parse( file );
                 final Element element = document.getDocumentElement();