cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/servlet CocoonServlet.java
Date Thu, 20 Dec 2001 15:15:36 GMT
froehlich    01/12/20 07:15:36

  Modified:    src/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  changed log targets: removed old and added access,core,error and sitemap
  
  Revision  Changes    Path
  1.57      +6 -6      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.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- CocoonServlet.java	2001/12/13 18:26:23	1.56
  +++ CocoonServlet.java	2001/12/20 15:15:36	1.57
  @@ -62,7 +62,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.56 $ $Date: 2001/12/13 18:26:23 $
  + * @version CVS $Revision: 1.57 $ $Date: 2001/12/20 15:15:36 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -540,6 +540,8 @@
               logLevel = "INFO";
           }
   
  +        final String accesslogger = getInitParameter("servlet-logger");
  +
           final Priority logPriority = Priority.getPriorityForName(logLevel.trim());
   
           final ServletOutputLogTarget servTarget = new ServletOutputLogTarget(this.servletContext);
  @@ -582,10 +584,9 @@
           } catch (Exception e) {
               Hierarchy.getDefaultHierarchy().log("Could not set up Cocoon Logger, will use
screen instead", e);
           }
  -
  -        final String cocoonLogger = getInitParameter("cocoon-logger");
  -        if (cocoonLogger != null) {
  -            this.log = logKitManager.getLogger(cocoonLogger);
  +        
  +        if (accesslogger != null) {
  +            this.log = logKitManager.getLogger(accesslogger);
           } else {
               this.log = logKitManager.getLogger("cocoon");
           }
  @@ -1062,4 +1063,3 @@
           return this.cocoon;
       }
   }
  -
  
  
  

----------------------------------------------------------------------
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