Changes for page Logging

Last modified by Antoine Mottier on 2023/07/17

From version 2.1
edited by Vincent Massol
on 2007/12/10
Change comment: There is no comment for this version
To version 3.1
edited by Vincent Massol
on 2008/01/04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,8 @@
1 +#startfloatingbox()
2 +*Contents*
3 +#toc ("2" "3" "")
4 +#endfloatingbox()
5 +
1 1  1 Logging
2 2  
3 3  XWiki uses Commons Logging for logging. By default XWiki is configured so that Commons Logging uses log4J. XWiki's Log4J configuration is located inside XWiki's JAR (xwiki.jar), in a <tt>[log4j.properties>http://fisheye2.cenqua.com/browse/~raw,r=trunk/xwiki/xwiki-platform/core/trunk/src/main/resources/log4j.properties]</tt> file. XWiki' JAR is itself located in your <tt>WEB-INF/lib/</tt> directory.
... ... @@ -54,3 +54,28 @@
54 54  log4j.logger.org.hibernate.SQL=debug
55 55  {code}
56 56  
62 +1.1 Activating the XWiki monitoring feature
63 +
64 +#info("The monitoring feature is already active in the default configuration.")
65 +
66 +XWiki has a feature to monitor times spent in its major components. To activate it, you need to:
67 +* Enable the Monitor plugin by adding/modifying the following plugin definition in the <tt>xwiki.cfg</tt> configuration file:
68 +
69 +{code:none}
70 +xwiki.plugins=\
71 + [...]
72 + com.xpn.xwiki.monitor.api.MonitorPlugin
73 +{code}
74 +
75 +* Enable it by adding/modifying the following in the <tt>xwiki.cfg</tt> configuration file:
76 +
77 +{code:none}
78 +xwiki.monitor=1
79 +{code}
80 +
81 +* Since the plugin logs everything under the <tt>DEBUG</tt> severity you also need to configure Log4J (as described above) by adding the following in <tt>log4j.properties</tt>:
82 +
83 +{code:none}
84 +log4j.logger.com.xpn.xwiki.monitor=debug
85 +{code}
86 +

Get Connected