]>
Commit | Line | Data |
---|---|---|
ca8db791 | 1 | # This is the logging configuration for Confluence. This is standard log4j.configuration as |
2 | # described at http://logging.apache.org/log4j/1.2/manual.html | |
3 | # | |
4 | # To turn more verbose logging on - change "ERROR" to "WARN" or "DEBUG" | |
5 | ||
6 | log4j.rootLogger=WARN, confluencelog, errorlog | |
7 | ||
8 | ### | |
9 | # LOGGING LOCATION AND APPENDER | |
10 | # | |
11 | # Here we define the default appender which after bootstrap will log to logs/atlassian-confluence.log | |
12 | # within your configured confluence.home. Prior to that, logging will be to the console. | |
13 | # | |
14 | # If you want to log to a different location uncomment the RollingFileAppender line and the File setting | |
15 | # as instructed below. | |
16 | ### | |
17 | # log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender | |
18 | log4j.appender.confluencelog=org.apache.log4j.RollingFileAppender | |
19 | log4j.appender.confluencelog.File=/var/log/confluence/confluence.log | |
20 | log4j.appender.confluencelog.Threshold=DEBUG | |
21 | log4j.appender.confluencelog.MaxFileSize=20480KB | |
22 | log4j.appender.confluencelog.MaxBackupIndex=5 | |
23 | log4j.appender.confluencelog.layout=com.atlassian.confluence.util.PatternLayoutWithContext | |
24 | log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c{4}] %M %m%n | |
25 | ||
26 | #log4j.logger.VELOCITY=DEBUG, specialvelocitylog | |
27 | #log4j.additivity.VELOCITY=false | |
28 | ||
29 | #################################### | |
30 | # LOGGING LEVELS | |
31 | #################################### | |
32 | ||
33 | #log4j.logger.com.atlassian.confluence.core=DEBUG | |
34 | ||
35 | #log4j.logger.com.atlassian.confluence.search=DEBUG | |
36 | ||
37 | ### | |
38 | # Atlassian User | |
39 | ### | |
40 | #log4j.logger.com.atlassian.user=DEBUG | |
41 | #log4j.logger.com.atlassian.confluence.user=DEBUG | |
42 | #log4j.logger.bucket.user=DEBUG | |
43 | #log4j.logger.com.atlassian.seraph=DEBUG | |
44 | #log4j.logger.com.opensymphony.user=DEBUG | |
45 | ||
46 | ### | |
47 | # Attachment Migration | |
48 | ### | |
49 | #log4j.logger.com.atlassian.confluence.pages.persistence.dao=DEBUG | |
50 | ||
51 | ### | |
52 | # INFO logging for startup event | |
53 | ### | |
54 | log4j.logger.com.atlassian.confluence.lifecycle=INFO | |
55 | ||
56 | ### | |
57 | # INFO logging for upgrade tasks. | |
58 | ### | |
59 | log4j.logger.com.atlassian.confluence.upgrade=INFO | |
60 | ||
61 | # Cluster events | |
62 | log4j.logger.com.atlassian.confluence.cluster=INFO | |
63 | ||
64 | # Cluster safety logging | |
65 | log4j.logger.com.atlassian.confluence.cluster.safety=INFO | |
66 | ||
67 | log4j.logger.com.atlassian.confluence.event.listeners.ResetHiLoAfterImportListener=INFO | |
68 | ||
69 | log4j.logger.com.atlassian.confluence.admin.actions=INFO | |
70 | ||
71 | #log4j.logger.com.mchange.v2.resourcepool.BasicResourcePool=DEBUG | |
72 | ||
73 | ### | |
74 | # THREAD LOCAL ERROR LOG APPENDER | |
75 | ### | |
76 | log4j.appender.errorlog=com.atlassian.core.logging.ThreadLocalErrorLogAppender | |
77 | log4j.appender.errorlog.Threshold=WARN | |
78 | ||
79 | # We have too problems in Velocity at the moment to show errors by default. | |
80 | log4j.logger.velocity=FATAL | |
81 | ||
82 | ## mail jobs debugging | |
83 | #log4j.logger.com.atlassian.confluence.mail.jobs=DEBUG | |
84 | ||
85 | ## lucene debugging | |
86 | #log4j.logger.com.atlassian.confluence.search.lucene=DEBUG | |
87 | #log4j.logger.com.atlassian.bonnie=DEBUG | |
88 | ||
89 | # suppress WARN log statements from the ReadWriteCache class (CONF-2517) | |
90 | log4j.logger.net.sf.hibernate.cache.ReadWriteCache=ERROR | |
91 | ||
92 | # View SpacePermission cache hits and misses | |
93 | #log4j.logger.com.atlassian.confluence.security=DEBUG | |
94 | ||
95 | # Tangosol Coherence logging -- see also severity in tangosol-coherence-override.xml. | |
96 | #log4j.logger.Coherence=DEBUG | |
97 | ||
98 | ##################### | |
99 | # Hibernate logging # | |
100 | ##################### | |
101 | ||
102 | ## log hibernate prepared statements/SQL queries (equivalent to setting 'hibernate.show_sql' to 'true') | |
103 | #log4j.logger.net.sf.hibernate.SQL=DEBUG | |
104 | ||
105 | ## log hibernate prepared statement parameter values | |
106 | #log4j.logger.net.sf.hibernate.type=DEBUG | |
107 | ||
108 | # suppress JDBCExceptionReporter warnings (there can be a few of these under DB2) | |
109 | log4j.logger.net.sf.hibernate.util.JDBCExceptionReporter=ERROR | |
110 | ||
111 | # suppress warnings from the SessionImpl (like Narrowing proxy to class com.atlassian.confluence.pages.Page - this operation breaks ==) | |
112 | log4j.logger.net.sf.hibernate.impl.SessionImpl=ERROR | |
113 | ||
114 | # suppress PDF export logs to errors only | |
115 | log4j.logger.com.atlassian.confluence.importexport.impl.PdfExporter=ERROR | |
116 | ||
117 | log4j.logger.org.apache.fop=ERROR | |
118 | ||
119 | # suppress FileUtils (file management) warnings | |
120 | log4j.logger.com.atlassian.core.util.FileUtils=ERROR | |
121 | ||
122 | # suppress hibernate CustomType warnings | |
123 | # (BlobInputStreamType is not a serializable custom type) | |
124 | log4j.logger.net.sf.hibernate.type.CustomType=ERROR | |
125 | ||
126 | #log4j.logger.bucket.search=DEBUG | |
127 | #log4j.logger.org.apache.lucene.search=DEBUG | |
128 | #log4j.logger.com.atlassian.confluence.search=DEBUG | |
129 | #log4j.logger.com.atlassian.confluence.search.summary=INFO | |
130 | #log4j.logger.com.atlassian.confluence.search.UnindexingHibernateInterceptor=DEBUG | |
131 | ||
132 | ### useful confluence classes | |
133 | #log4j.logger.com.atlassian.confluence=INFO | |
134 | #log4j.logger.com.atlassian.confluence.setup=DEBUG | |
135 | #log4j.logger.com.atlassian.confluence.setup.actions=DEBUG | |
136 | #log4j.logger.com.atlassian.confluence.util=DEBUG | |
137 | ||
138 | ### show progress building of ANCESTOR table | |
139 | #log4j.logger.com.atlassian.confluence.util.AncestorTableBuilder=INFO | |
140 | ||
141 | ### hibernate | |
142 | #log4j.logger.net.sf.hibernate=DEBUG | |
143 | ||
144 | ### log JDBC bind parameters ### | |
145 | # log4j.logger.net.sf.hibernate.type=DEBUG | |
146 | ||
147 | ### hibernate caching activity | |
148 | #log4j.logger.net.sf.hibernate.cache=DEBUG | |
149 | ||
150 | ### log prepared statement cache activity ### | |
151 | #log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=DEBUG | |
152 | ||
153 | ### opensymphony (sitemesh, webwork, xwork) | |
154 | #log4j.logger.com.opensymphony=DEBUG | |
155 | ||
156 | ### Spring | |
157 | # log4j.logger.org.springframework=WARN | |
158 | # log4j.logger.springframework.transaction.support.TransactionSynchronizationManager=DEBUG | |
159 | # log4j.logger.com.atlassian.config.FlushingSpringSessionInViewFilterForHibernate=DEBUG | |
160 | ||
161 | # Suppress "Found more than one MBeanServer" warnings | |
162 | log4j.logger.org.springframework.jmx.support.JmxUtils=ERROR | |
163 | ||
164 | ### Apache stuff | |
165 | # log4j.logger.org.apache=WARN | |
166 | ||
167 | # Suppress "Cookie rejected" messages from HttpClient | |
168 | log4j.logger.org.apache.commons.httpclient.HttpMethodBase=ERROR | |
169 | ||
170 | ### WIKI Engine | |
171 | #log4j.logger.com.atlassian.confluence.importexport=WARN | |
172 | #log4j.logger.com.atlassian.renderer=WARN | |
173 | ||
174 | ### Plugin subsystem | |
175 | #log4j.logged.org.springframework.osgi=ALL | |
176 | #log4j.logger.com.atlassian.plugin.osgi=DEBUG | |
177 | #log4j.logger.com.atlassian.plugin.DefaultPluginManager=DEBUG | |
178 | ||
179 | ### | |
180 | # Log smartlist queries | |
181 | ### | |
182 | #log4j.logger.com.atlassian.confluence.core.LuceneSmartListManager=DEBUG | |
183 | ||
184 | #### | |
185 | # PROFILING LOG APPENDER | |
186 | ### | |
187 | #log4j.appender.profiling=com.atlassian.confluence.util.profiling.ProfilingLogAppender | |
188 | #log4j.appender.profiling.Threshold=DEBUG | |
189 | #log4j.appender.profiling.layout=org.apache.log4j.PatternLayout | |
190 | #log4j.appender.profiling.layout.ConversionPattern=%d %p [%c{4}] %m%n | |
191 | ||
192 | ## Atlassian Profiling | |
193 | log4j.logger.com.atlassian.util.profiling.UtilTimerStack=DEBUG | |
194 | ||
195 | ## profiling debugging | |
196 | #log4j.logger.net.sf.hibernate.cache.ReadWriteCache=DEBUG, profiling | |
197 | #log4j.logger.com.atlassian.config.FlushingSpringSessionInViewFilterForHibernate=DEBUG, profiling | |
198 | #log4j.logger.com.atlassian.confluence.util=DEBUG, profiling | |
199 | #log4j.logger.org.springframework.orm.hibernate.HibernateTransactionManager=DEBUG, profiling | |
200 | #log4j.logger.com.opensymphony.oscache.web.filter=DEBUG, profiling | |
201 | #log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=DEBUG, profiling | |
202 | #log4j.logger.net.sf.hibernate.type=DEBUG, profiling | |
203 | ||
204 | #### | |
205 | # Access log configuration | |
206 | #### | |
207 | # Uncomment the lines below and the access log filter-mapping in web.xml to enable the logging | |
208 | # You will probably want to create a new appender so that access log messages go to a different file. | |
209 | #log4j.category.com.atlassian.confluence.util.AccessLogFilter=INFO | |
210 | ||
211 | ## caching debugging | |
212 | #log4j.logger.com.atlassian.confluence.cache=DEBUG | |
213 | ||
214 | ## indexing debugging | |
215 | #log4j.logger.com.atlassian.confluence.search.lucene=DEBUG | |
216 | ||
217 | # Debugging to troubleshoot duplicate key in BANDANA table problem | |
218 | #log4j.logger.com.atlassian.hibernate.ResettableTableHiLoGenerator=DEBUG | |
219 | ||
220 | #log4j.logger.com.atlassian.confluence.search.didyoumean.lucene.LuceneWordSuggester=DEBUG | |
221 | ||
222 | # Default log level is WARN. If you want to log exceptions as well if an action is not found | |
223 | # set the level to DEBUG | |
224 | log4j.logger.com.atlassian.confluence.servlet.ConfluenceServletDispatcher=WARN | |
225 | ||
226 | log4j.logger.com.atlassian.confluence.search.v2.lucene.SearcherAction=WARN | |
227 | ||
228 | # DWR logs 404's at WARN level which is too high and can spam the logs | |
229 | # http://jira.atlassian.com/browse/CONF-13438 | |
230 | log4j.logger.org.directwebremoting.servlet.NotFoundHandler=ERROR | |
231 | ||
232 | # reduce the number of logs generated by the AbstractNoOpServlet | |
233 | # http://jira.atlassian.com/browse/CONF-13496 | |
234 | log4j.logger.com.atlassian.core.servlet.AbstractNoOpServlet=ERROR | |
235 | ||
236 | log4j.logger.org.springframework=INFO | |
237 | ||
238 | # Log when imports begin and end | |
239 | log4j.logger.com.atlassian.confluence.importexport.actions.ImportLongRunningTask=INFO |