cziegeler 01/10/11 02:06:02
Modified: src/org/apache/cocoon/servlet CocoonServlet.java
Log:
When Cocoon is reloaded, the logkit configuration is also reloading. This
enables changing the logkit settings during runtime
Revision Changes Path
1.43 +4 -1
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.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- CocoonServlet.java 2001/10/11 07:28:23 1.42
+++ CocoonServlet.java 2001/10/11 09:06:02 1.43
@@ -58,7 +58,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Leo Sutic</a>
- * @version CVS $Revision: 1.42 $ $Date: 2001/10/11 07:28:23 $
+ * @version CVS $Revision: 1.43 $ $Date: 2001/10/11 09:06:02 $
*/
public class CocoonServlet extends HttpServlet {
@@ -837,15 +837,18 @@
if (this.cocoon != null && this.allowReload == true) {
if (this.cocoon.modifiedSince(this.creationTime)) {
log.info("Configuration changed reload attempt");
+ this.initLogger();
this.createCocoon();
return this.cocoon;
} else if ((pathInfo == null) && (reloadParam != null)) {
log.info("Forced reload attempt");
+ this.initLogger();
this.createCocoon();
return this.cocoon;
}
} else if ((pathInfo == null) && (this.allowReload == true) &&
(reloadParam != null)) {
log.info("Invalid configurations reload");
+ this.initLogger();
this.createCocoon();
return this.cocoon;
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]