Changes for page Logging
Last modified by Thomas Mortagne on 2024/08/02
From version 1.3
edited by Vincent Massol
on 2007/07/23
on 2007/07/23
Change comment:
There is no comment for this version
To version 1.4
edited by Vincent Massol
on 2007/07/23
on 2007/07/23
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,6 +2,8 @@ 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. 4 4 5 +#info("By default XWiki is configured to log everythinf both on the console and in a xwiki.log file located in the directory from where you have started the JVL. This is usually the directory from where you have started your application server/Servlet container. It's recommended to either start the JVM from a location where it's ok to output the xwiki.log file or to create a custom Log4J configuration as explained below.") 6 + 5 5 1.1 Using a custom Log4J configuration 6 6 7 7 The best solution is to create a new <tt>log4j.properties</tt> file in your <tt>WEB-INF/classes</tt> directory. It'll thus override the one from the XWiki JAR. As an example, here's a sample configuration: