cziegeler 01/10/11 02:11:02
Modified: src/org/apache/cocoon/servlet Tag: cocoon_20_branch
CocoonServlet.java
Log:
When Cocoon is reloaded, the logkit configuration is also reloading. This
enables changing the logkit settings during runtime
Revision Changes Path
No revision
No revision
1.13.2.28 +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.13.2.27
retrieving revision 1.13.2.28
diff -u -r1.13.2.27 -r1.13.2.28
--- CocoonServlet.java 2001/10/10 11:14:35 1.13.2.27
+++ CocoonServlet.java 2001/10/11 09:11:02 1.13.2.28
@@ -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.13.2.27 $ $Date: 2001/10/10 11:14:35 $
+ * @version CVS $Revision: 1.13.2.28 $ $Date: 2001/10/11 09:11: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]