cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/servlet CocoonServlet.java
Date Wed, 10 Oct 2001 11:18:05 GMT
sylvain     01/10/10 04:18:05

  Modified:    src/org/apache/cocoon Main.java
               src/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Use default logger hierarchy (some non-loggable classes use it)
  
  Revision  Changes    Path
  1.21      +22 -22    xml-cocoon2/src/org/apache/cocoon/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/Main.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Main.java	2001/10/08 20:03:10	1.20
  +++ Main.java	2001/10/10 11:18:05	1.21
  @@ -8,33 +8,33 @@
   
   package org.apache.cocoon;
   
  -import org.apache.avalon.excalibur.cli.CLArgsParser;
  -import org.apache.avalon.excalibur.cli.CLOption;
  -import org.apache.avalon.excalibur.cli.CLOptionDescriptor;
  -import org.apache.avalon.excalibur.cli.CLUtil;
  -import org.apache.avalon.excalibur.logger.DefaultLogKitManager;
  -import org.apache.avalon.framework.configuration.Configuration;
  -import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
  -import org.apache.avalon.framework.context.DefaultContext;
  -import org.apache.cocoon.environment.Environment;
  -import org.apache.cocoon.environment.commandline.CommandlineContext;
  -import org.apache.cocoon.environment.commandline.FileSavingEnvironment;
  -import org.apache.cocoon.environment.commandline.LinkSamplingEnvironment;
  -import org.apache.cocoon.util.IOUtils;
  -import org.apache.cocoon.util.MIMEUtils;
  -import org.apache.cocoon.util.NetUtils;
  -import org.apache.log.Hierarchy;
  -import org.apache.log.Logger;
  -import org.apache.log.Priority;
  -
  -import java.io.*;
  +import org.apache.avalon.excalibur.cli.CLArgsParser;
  +import org.apache.avalon.excalibur.cli.CLOption;
  +import org.apache.avalon.excalibur.cli.CLOptionDescriptor;
  +import org.apache.avalon.excalibur.cli.CLUtil;
  +import org.apache.avalon.excalibur.logger.DefaultLogKitManager;
  +import org.apache.avalon.framework.configuration.Configuration;
  +import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
  +import org.apache.avalon.framework.context.DefaultContext;
  +import org.apache.cocoon.environment.Environment;
  +import org.apache.cocoon.environment.commandline.CommandlineContext;
  +import org.apache.cocoon.environment.commandline.FileSavingEnvironment;
  +import org.apache.cocoon.environment.commandline.LinkSamplingEnvironment;
  +import org.apache.cocoon.util.IOUtils;
  +import org.apache.cocoon.util.MIMEUtils;
  +import org.apache.cocoon.util.NetUtils;
  +import org.apache.log.Hierarchy;
  +import org.apache.log.Logger;
  +import org.apache.log.Priority;
  +
  +import java.io.*;
   import java.util.*;
   
   /**
    * Command line entry point.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.20 $ $Date: 2001/10/08 20:03:10 $
  + * @version CVS $Revision: 1.21 $ $Date: 2001/10/10 11:18:05 $
    */
   
   public class Main {
  @@ -265,7 +265,7 @@
                   final FileInputStream fis = new FileInputStream(logKit);
                   final DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
                   final Configuration logKitConf = builder.build(fis);
  -                logKitManager = new DefaultLogKitManager();
  +                logKitManager = new DefaultLogKitManager(Hierarchy.getDefaultHierarchy());
                   logKitManager.setLogger(log);
                   final DefaultContext subcontext = new DefaultContext(appContext);
                   subcontext.put("context-root", contextDir);
  
  
  
  1.41      +2 -2      xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- CocoonServlet.java	2001/10/08 20:03:20	1.40
  +++ CocoonServlet.java	2001/10/10 11:18:05	1.41
  @@ -58,7 +58,7 @@
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
    * @author <a href="mailto:leo.sutic@inspireinfrastructure.com">Leo Sutic</a>
  - * @version CVS $Revision: 1.40 $ $Date: 2001/10/08 20:03:20 $
  + * @version CVS $Revision: 1.41 $ $Date: 2001/10/10 11:18:05 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -380,7 +380,7 @@
           Hierarchy.getDefaultHierarchy().setDefaultLogTarget(servTarget);
           Hierarchy.getDefaultHierarchy().setDefaultPriority(logPriority);
           final Logger logger = Hierarchy.getDefaultHierarchy().getLoggerFor("");
  -        final DefaultLogKitManager logKitManager = new DefaultLogKitManager();
  +        final DefaultLogKitManager logKitManager = new DefaultLogKitManager(Hierarchy.getDefaultHierarchy());
           logKitManager.setLogger(logger);
           final DefaultContext subcontext = new DefaultContext(this.appContext);
           subcontext.put("servlet-context", this.servletContext);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message