/
logback.xml
95 lines (80 loc) · 3.75 KB
/
logback.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
-->
<configuration>
<!-- Register SLF4J against the JMX MBean Server automatically -->
<jmxConfigurator objectName="logback:type=xwiki"/>
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<!-- Direct log messages to stdout -->
<Target>System.out</Target>
<encoder>
<pattern>%d [%t] %-5p %-30.30c{2} - %m %n</pattern>
</encoder>
</appender>
<logger name="org.xwiki" level="info"/>
<!-- Old code is using the com.xpn.xwiki package and is logging too much stuff at INFO level, which is why we use
the default WARN level. -->
<logger name="com.xpn.xwiki" level="warn"/>
<logger name="com.xpn.xwiki.store.migration" level="info"/>
<logger name="com.xpn.xwiki.render.XWikiRadeoxRenderEngine" level="warn"/>
<!-- Special loggers, not using class names -->
<!-- Set it to DEBUG to get logs for shuts down operations -->
<logger name="org.xwiki.shutdown" level="info"/>
<!-- Hibernate logging options -->
<!-- Global level for all Hibernate logs -->
<logger name="org.hibernate" level="warn"/>
<!-- Log HQL query parser activity -->
<logger name="org.hibernate.hql.ast.AST" level="warn"/>
<!-- Log just the SQL -->
<logger name="org.hibernate.SQL" level="warn"/>
<!-- Log JDBC bind parameters -->
<logger name="org.hibernate.type" level="warn"/>
<!-- Log schema export/update -->
<logger name="org.hibernate.tool.hbm2ddl" level="warn"/>
<!-- Log HQL parse trees -->
<logger name="org.hibernate.hql" level="warn"/>
<!-- Log cache activity -->
<logger name="org.hibernate.cache" level="warn"/>
<!-- Log transaction activity -->
<logger name="org.hibernate.transaction" level="warn"/>
<!-- Log JDBC resource acquisition -->
<logger name="org.hibernate.jdbc" level="warn"/>
<!-- Enable the following line if you want to track down connection leakages when using
DriverManagerConnectionProvider -->
<logger name="org.hibernate.connection.DriverManagerConnectionProvider" level="warn"/>
<!-- Log prepared statement cache activity -->
<logger name="org.hibernate.ps.PreparedStatementCache" level="warn"/>
<!-- Deactivate Struts warnings -->
<logger name="org.apache.struts.util.RequestUtils" level="error"/>
<!-- Deactive PDF Export CSS Applier warnings -->
<logger name="org.apache.fop.layoutmgr.inline.ContentLayoutManager" level="error"/>
<logger name="info.informatica.doc.style.css.dom" level="error"/>
<!-- Deactivate JGroups warnings -->
<logger name="org.jgroups" level="error"/>
<!-- By default everything that is of severity WARN, ERROR or FATAL is logged to the console.
Since the console output is captured and redirected by the servlet container in most cases,
the logs will end up the container's logs, for example in catalina.out in Tomcat.
-->
<root level="warn">
<appender-ref ref="stdout"/>
</root>
</configuration>