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
4 # To turn more verbose logging on - change "ERROR" to "WARN" or "DEBUG"
6 log4j.rootLogger=WARN, confluencelog, errorlog
9 # LOGGING LOCATION AND APPENDER
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.
14 # If you want to log to a different location uncomment the RollingFileAppender line and the File setting
15 # as instructed below.
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
26 #log4j.logger.VELOCITY=DEBUG, specialvelocitylog
27 #log4j.additivity.VELOCITY=false
29 ####################################
31 ####################################
33 #log4j.logger.com.atlassian.confluence.core=DEBUG
35 #log4j.logger.com.atlassian.confluence.search=DEBUG
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
47 # Attachment Migration
49 #log4j.logger.com.atlassian.confluence.pages.persistence.dao=DEBUG
52 # INFO logging for startup event
54 log4j.logger.com.atlassian.confluence.lifecycle=INFO
57 # INFO logging for upgrade tasks.
59 log4j.logger.com.atlassian.confluence.upgrade=INFO
62 log4j.logger.com.atlassian.confluence.cluster=INFO
64 # Cluster safety logging
65 log4j.logger.com.atlassian.confluence.cluster.safety=INFO
67 log4j.logger.com.atlassian.confluence.event.listeners.ResetHiLoAfterImportListener=INFO
69 log4j.logger.com.atlassian.confluence.admin.actions=INFO
71 #log4j.logger.com.mchange.v2.resourcepool.BasicResourcePool=DEBUG
74 # THREAD LOCAL ERROR LOG APPENDER
76 log4j.appender.errorlog=com.atlassian.core.logging.ThreadLocalErrorLogAppender
77 log4j.appender.errorlog.Threshold=WARN
79 # We have too problems in Velocity at the moment to show errors by default.
80 log4j.logger.velocity=FATAL
82 ## mail jobs debugging
83 #log4j.logger.com.atlassian.confluence.mail.jobs=DEBUG
86 #log4j.logger.com.atlassian.confluence.search.lucene=DEBUG
87 #log4j.logger.com.atlassian.bonnie=DEBUG
89 # suppress WARN log statements from the ReadWriteCache class (CONF-2517)
90 log4j.logger.net.sf.hibernate.cache.ReadWriteCache=ERROR
92 # View SpacePermission cache hits and misses
93 #log4j.logger.com.atlassian.confluence.security=DEBUG
95 # Tangosol Coherence logging -- see also severity in tangosol-coherence-override.xml.
96 #log4j.logger.Coherence=DEBUG
100 #####################
102 ## log hibernate prepared statements/SQL queries (equivalent to setting 'hibernate.show_sql' to 'true')
103 #log4j.logger.net.sf.hibernate.SQL=DEBUG
105 ## log hibernate prepared statement parameter values
106 #log4j.logger.net.sf.hibernate.type=DEBUG
108 # suppress JDBCExceptionReporter warnings (there can be a few of these under DB2)
109 log4j.logger.net.sf.hibernate.util.JDBCExceptionReporter=ERROR
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
114 # suppress PDF export logs to errors only
115 log4j.logger.com.atlassian.confluence.importexport.impl.PdfExporter=ERROR
117 log4j.logger.org.apache.fop=ERROR
119 # suppress FileUtils (file management) warnings
120 log4j.logger.com.atlassian.core.util.FileUtils=ERROR
122 # suppress hibernate CustomType warnings
123 # (BlobInputStreamType is not a serializable custom type)
124 log4j.logger.net.sf.hibernate.type.CustomType=ERROR
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
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
138 ### show progress building of ANCESTOR table
139 #log4j.logger.com.atlassian.confluence.util.AncestorTableBuilder=INFO
142 #log4j.logger.net.sf.hibernate=DEBUG
144 ### log JDBC bind parameters ###
145 # log4j.logger.net.sf.hibernate.type=DEBUG
147 ### hibernate caching activity
148 #log4j.logger.net.sf.hibernate.cache=DEBUG
150 ### log prepared statement cache activity ###
151 #log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=DEBUG
153 ### opensymphony (sitemesh, webwork, xwork)
154 #log4j.logger.com.opensymphony=DEBUG
157 # log4j.logger.org.springframework=WARN
158 # log4j.logger.springframework.transaction.support.TransactionSynchronizationManager=DEBUG
159 # log4j.logger.com.atlassian.config.FlushingSpringSessionInViewFilterForHibernate=DEBUG
161 # Suppress "Found more than one MBeanServer" warnings
162 log4j.logger.org.springframework.jmx.support.JmxUtils=ERROR
165 # log4j.logger.org.apache=WARN
167 # Suppress "Cookie rejected" messages from HttpClient
168 log4j.logger.org.apache.commons.httpclient.HttpMethodBase=ERROR
171 #log4j.logger.com.atlassian.confluence.importexport=WARN
172 #log4j.logger.com.atlassian.renderer=WARN
175 #log4j.logged.org.springframework.osgi=ALL
176 #log4j.logger.com.atlassian.plugin.osgi=DEBUG
177 #log4j.logger.com.atlassian.plugin.DefaultPluginManager=DEBUG
180 # Log smartlist queries
182 #log4j.logger.com.atlassian.confluence.core.LuceneSmartListManager=DEBUG
185 # PROFILING LOG APPENDER
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
192 ## Atlassian Profiling
193 log4j.logger.com.atlassian.util.profiling.UtilTimerStack=DEBUG
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
205 # Access log configuration
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
212 #log4j.logger.com.atlassian.confluence.cache=DEBUG
214 ## indexing debugging
215 #log4j.logger.com.atlassian.confluence.search.lucene=DEBUG
217 # Debugging to troubleshoot duplicate key in BANDANA table problem
218 #log4j.logger.com.atlassian.hibernate.ResettableTableHiLoGenerator=DEBUG
220 #log4j.logger.com.atlassian.confluence.search.didyoumean.lucene.LuceneWordSuggester=DEBUG
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
226 log4j.logger.com.atlassian.confluence.search.v2.lucene.SearcherAction=WARN
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
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
236 log4j.logger.org.springframework=INFO
238 # Log when imports begin and end
239 log4j.logger.com.atlassian.confluence.importexport.actions.ImportLongRunningTask=INFO