1##
2## Licensed to the Apache Software Foundation (ASF) under one or more
3## contributor license agreements.  See the NOTICE file distributed with
4## this work for additional information regarding copyright ownership.
5## The ASF licenses this file to You under the Apache License, Version 2.0
6## (the "License"); you may not use this file except in compliance with
7## the License.  You may obtain a copy of the License at
8##
9##    http://www.apache.org/licenses/LICENSE-2.0
10##
11## Unless required by applicable law or agreed to in writing, software
12## distributed under the License is distributed on an "AS IS" BASIS,
13## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14## See the License for the specific language governing permissions and
15## limitations under the License.
16##
17## $Rev: 1148232 $ $Date: 2011-07-19 16:38:54 +0800 (Tue, 19 Jul 2011) $
18##
19
20log4j.rootLogger=INFO, CONSOLE, FILE
21
22log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
23log4j.appender.CONSOLE.Threshold=${org.apache.geronimo.log.ConsoleLogLevel}
24log4j.appender.CONSOLE.Target=System.out
25log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
26log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %-5p [%c{1}] %m%n
27
28log4j.appender.FILE=org.apache.log4j.RollingFileAppender
29log4j.appender.FILE.Threshold=TRACE
30log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
31log4j.appender.FILE.layout.ConversionPattern=%d{ISO8601} %-5p [%c{1}] %m%n
32
33#
34# Note, changing log4j.appender.FILE.append=false will result in logs being
35# overwritten without archiving the previous version of the log.
36#
37log4j.appender.FILE.append=true
38log4j.appender.FILE.file=${org.apache.geronimo.server.dir}/var/log/geronimo.log
39log4j.appender.FILE.bufferedIO=false
40log4j.appender.FILE.maxBackupIndex=3
41log4j.appender.FILE.maxFileSize=10MB
42
43#
44# Example: enable trace logging from CONSOLE appender
45#
46#log4j.appender.CONSOLE.Threshold=TRACE
47
48#
49# Example: enable trace messages from foo.bar category
50#
51#log4j.logger.foo.bar=TRACE
52
53# Geronimo
54#This will help find connection leak problems
55#log4j.logger.org.apache.geronimo.connector.outbound=TRACE
56log4j.logger.org.apache.geronimo.system.logging.log4j.Log4jService=INFO
57
58
59log4j.logger.org.apache.geronimo.system.properties.SystemProperties=ERROR
60
61#### Eliminate any INFO level output during normal operation -- except the really relevant stuff ####
62#    We can change the Geronimo code to avoid this, but we have to just adjust the log levels for
63#    any third-party libraries.
64log4j.logger.org.apache.commons.digester=ERROR
65log4j.logger.org.apache.jasper.compiler.SmapUtil=WARN
66
67# ActiveMQ
68log4j.logger.org.apache.activemq=WARN
69log4j.logger.org.apache.activemq.broker.jmx.ManagementContext=ERROR
70
71# Don't need so much info on every web page that's rendered
72log4j.logger.org.mortbay=INFO
73log4j.logger.org.apache.pluto=INFO
74log4j.logger.org.apache.pluto.container.util.StringManager=ERROR
75log4j.logger.org.apache.jasper=INFO
76
77# Various Jetty startup/shutdown output
78log4j.logger.org.mortbay.http.HttpServer=WARN
79log4j.logger.org.mortbay.http.SocketListener=WARN
80log4j.logger.org.mortbay.http.ajp.AJP13Listener=WARN
81log4j.logger.org.mortbay.util.Container=WARN
82log4j.logger.org.mortbay.util.Credential=WARN
83log4j.logger.org.mortbay.util.ThreadedServer=WARN
84log4j.logger.org.mortbay.jetty.servlet.WebApplicationContext=WARN
85log4j.logger.org.mortbay.jetty.context=WARN
86
87# Various Tomcat startup output
88log4j.logger.org.apache.catalina.realm.JAASRealm=WARN
89log4j.logger.org.apache.catalina.realm.RealmBase=WARN
90log4j.logger.org.apache.catalina.loader.WebappLoader=WARN
91log4j.logger.org.apache.catalina.startup.Embedded=WARN
92log4j.logger.org.apache.catalina.core.StandardEngine=WARN
93log4j.logger.org.apache.catalina.core.StandardHost=WARN
94log4j.logger.org.apache.jk.common.ChannelSocket=WARN
95log4j.logger.org.apache.jk.server.JkMain=WARN
96log4j.logger.org.apache.coyote.http11.Http11BaseProtocol=WARN
97log4j.logger.org.apache.coyote.http11.Http11Protocol=WARN
98log4j.logger.org.apache.catalina.core.ContainerBase=WARN
99log4j.logger.org.apache.catalina.core.StandardContext=WARN
100log4j.logger.org.apache.tomcat.util.net.SSLImplementation=WARN
101log4j.logger.org.apache.catalina.startup.DigesterFactory=ERROR
102
103# myfaces startup output
104log4j.logger.org.apache.myfaces.renderkit.html.HtmlRenderKitImpl=WARN
105log4j.logger.org.apache.myfaces.config.FacesConfigurator=WARN
106log4j.logger.org.apache.myfaces.webapp.StartupServletContextListener=WARN
107log4j.logger.org.apache.myfaces.webapp.StartupServletContextListener=WARN
108
109# emits a spurious warn about null locale during startup of webapps
110log4j.logger.org.apache.myfaces.shared_impl.util.LocaleUtils=ERROR
111
112# Emits a spurious WARN during startup on /some-path/* security mappings
113log4j.logger.org.apache.catalina.deploy.SecurityCollection=ERROR
114
115# Prints the MBean Server ID
116log4j.logger.javax.management.MBeanServerFactory=WARN
117
118# Prints the RMI connection URL
119log4j.logger.javax.management.remote.rmi.RMIConnectorServer=WARN
120log4j.logger.javax.management.remote.JMXServiceURL=WARN
121
122# Prints various stuff during startup
123log4j.logger.org.apache.juddi.registry.RegistryServlet=WARN
124
125# Prints various stuff when the portal is used
126log4j.logger.org.apache.pluto.portalImpl.Servlet=WARN
127
128# The users don't care the portlet register/unregister info in log.
129log4j.logger.org.apache.pluto.driver.container.PortletContextManager=WARN
130
131# Prints stuff for AJAX calls
132log4j.logger.uk.ltd.getahead.dwr.impl.DefaultConfiguration=WARN
133log4j.logger.uk.ltd.getahead.dwr.impl.ExecuteQuery=WARN
134log4j.logger.uk.ltd.getahead.dwr.util.Logger=WARN
135log4j.logger.org.directwebremoting.impl.DTDEntityResolver=ERROR
136
137# Aries Blueprint - hide "waiting for namespace handler" warnings
138log4j.logger.org.apache.aries.blueprint.container.BlueprintContainerImpl=ERROR
139
140# XBean - Suppress "could not load" warnings for Spring classes
141log4j.logger.org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler=ERROR
142
143# Aries Blueprint - hide "ServiceUnavailableException: The Blueprint container is being or has been destroyed" INFO message in log when shutdown geronimo.
144log4j.logger.org.apache.aries.blueprint.container.BeanRecipe=WARN
145
146# Example: enable Axis debug log output
147#log4j.logger.org.apache.axis.enterprise=DEBUG
148#log4j.logger.org.apache.axis.TIME=DEBUG
149#log4j.logger.org.apache.axis.EXCEPTIONS=DEBUG
150
151# Example: enable Axis2 debug log output
152#log4j.logger.org.apache.axis2.enterprise=DEBUG
153#log4j.logger.de.hunsicker.jalopy.io=DEBUG
154#log4j.logger.httpclient.wire.header=DEBUG
155#log4j.logger.org.apache.commons.httpclient=DEBUG
156
157# Example: enable OpenJPA debug log output
158#log4j.logger.openjpa.Runtime=TRACE
159#log4j.logger.openjpa.Enhance=TRACE
160#log4j.logger.openjpa.SQL=TRACE
161#log4j.logger.openjpa=TRACE
162
163