spring - Geronimo.out increase too fast -


i have built grails project on geronimo. made own log4j write error everyday, has small size.

my problem geronimo.out file increase fast. goes 1gb in few days. tried disable console appender still write geronimo.out file.

how can disable that?

here server-log4j.properties:

## ## licensed apache software foundation (asf) under 1 or more ## contributor license agreements.  see notice file distributed ## work additional information regarding copyright ownership. ## asf licenses file under apache license, version 2.0 ## (the "license"); may not use file except in compliance ## license.  may obtain copy of license @ ## ##    http://www.apache.org/licenses/license-2.0 ## ## unless required applicable law or agreed in writing, software ## distributed under license distributed on "as is" basis, ## without warranties or conditions of kind, either express or implied. ## see license specific language governing permissions , ## limitations under license. ## ## $rev: 810770 $ $date: 2009-09-03 11:32:24 +0800 (thu, 03 sep 2009) $ ##  log4j.rootlogger=info  #log4j.appender.console=org.apache.log4j.consoleappender #log4j.appender.console.threshold=${org.apache.geronimo.log.consoleloglevel} #log4j.appender.console.target=system.out #log4j.appender.console.layout=org.apache.log4j.patternlayout #log4j.appender.console.layout.conversionpattern=%d{iso8601} %-5p [%c{1}] %m%n  #log4j.appender.file=org.apache.log4j.rollingfileappender #log4j.appender.file.threshold=trace #log4j.appender.file.layout=org.apache.log4j.patternlayout #log4j.appender.file.layout.conversionpattern=%d{iso8601} %-5p [%c{1}] %m%n  # # note, changing log4j.appender.file.append=false result in logs being # overwritten without archiving previous version of log. # #log4j.appender.file.append=true #log4j.appender.file.file=${org.apache.geronimo.server.dir}/var/log/geronimo.log #log4j.appender.file.bufferedio=false #log4j.appender.file.maxbackupindex=3 #log4j.appender.file.maxfilesize=10mb  # # example: enable trace logging console appender # #log4j.appender.console.threshold=trace#org.apache.geronimo.system.logging.log4j.xlevel  # # example: enable trace messages foo.bar category # #log4j.logger.foo.bar=trace#org.apache.geronimo.system.logging.log4j.xlevel  # geronimo #this find connection leak problems #log4j.logger.org.apache.geronimo.connector.outbound=trace#org.apache.geronimo.system.logging.log4j.xlevel log4j.logger.org.apache.geronimo.system.logging.log4j.log4jservice=info  #### eliminate info level output during normal operation -- except relevant stuff #### #    can change geronimo code avoid this, have adjust log levels #    third-party libraries. log4j.logger.org.apache.commons.digester=error log4j.logger.org.apache.jasper.compiler.smaputil=warn  # activemq log4j.logger.org.apache.activemq=warn log4j.logger.org.apache.activemq.broker.jmx.managementcontext=error  # don't need info on every web page that's rendered log4j.logger.org.mortbay=info log4j.logger.org.apache.pluto=info log4j.logger.org.apache.jasper=info  # various jetty startup/shutdown output log4j.logger.org.mortbay.http.httpserver=warn log4j.logger.org.mortbay.http.socketlistener=warn log4j.logger.org.mortbay.http.ajp.ajp13listener=warn log4j.logger.org.mortbay.util.container=warn log4j.logger.org.mortbay.util.credential=warn log4j.logger.org.mortbay.util.threadedserver=warn log4j.logger.org.mortbay.jetty.servlet.webapplicationcontext=warn log4j.logger.org.mortbay.jetty.context=warn  # various tomcat startup output log4j.logger.org.apache.catalina.realm.jaasrealm=warn log4j.logger.org.apache.catalina.realm.realmbase=warn log4j.logger.org.apache.catalina.loader.webapploader=warn log4j.logger.org.apache.catalina.startup.embedded=warn log4j.logger.org.apache.catalina.core.standardengine=warn log4j.logger.org.apache.catalina.core.standardhost=warn log4j.logger.org.apache.jk.common.channelsocket=warn log4j.logger.org.apache.jk.server.jkmain=warn log4j.logger.org.apache.coyote.http11.http11baseprotocol=warn log4j.logger.org.apache.coyote.http11.http11protocol=warn log4j.logger.org.apache.catalina.core.containerbase=warn log4j.logger.org.apache.catalina.core.standardcontext=warn log4j.logger.org.apache.tomcat.util.net.sslimplementation=warn  # myfaces startup output log4j.logger.org.apache.myfaces.renderkit.html.htmlrenderkitimpl=warn log4j.logger.org.apache.myfaces.config.facesconfigurator=warn log4j.logger.org.apache.myfaces.webapp.startupservletcontextlistener=warn log4j.logger.org.apache.myfaces.webapp.startupservletcontextlistener=warn  # emits spurious warn null locale during startup of webapps log4j.logger.org.apache.myfaces.shared_impl.util.localeutils=error  # emits spurious warn during startup on /some-path/* security mappings log4j.logger.org.apache.catalina.deploy.securitycollection=error  # prints mbean server id log4j.logger.javax.management.mbeanserverfactory=warn  # prints rmi connection url log4j.logger.javax.management.remote.rmi.rmiconnectorserver=warn log4j.logger.javax.management.remote.jmxserviceurl=warn  # prints various stuff during startup log4j.logger.org.apache.juddi.registry.registryservlet=warn  # prints various stuff when portal used log4j.logger.org.apache.pluto.portalimpl.servlet=warn  # prints various stuff when registering portlets context log4j.logger.org.apache.pluto.core.portletcontextmanager=warn  # prints stuff ajax calls log4j.logger.uk.ltd.getahead.dwr.impl.defaultconfiguration=warn log4j.logger.uk.ltd.getahead.dwr.impl.executequery=warn log4j.logger.uk.ltd.getahead.dwr.util.logger=warn  # prints various stuff when loading mapping descriptors in pluto log4j.logger.org.exolab.castor.mapping.mapping=warn  # prints various stuff when filtering requests. log4j.logger.org.apache.geronimo.console.filter.xsrfhandler=warn  # example: enable axis debug log output #log4j.logger.org.apache.axis.enterprise=debug #log4j.logger.org.apache.axis.time=debug #log4j.logger.org.apache.axis.exceptions=debug  # example: enable axis2 debug log output #log4j.logger.org.apache.axis2.enterprise=debug #log4j.logger.de.hunsicker.jalopy.io=debug #log4j.logger.httpclient.wire.header=debug #log4j.logger.org.apache.commons.httpclient=debug  # example: enable openjpa debug log output #log4j.logger.openjpa.runtime=trace #log4j.logger.openjpa.enhance=trace #log4j.logger.openjpa.sql=trace #log4j.logger.openjpa=trace 

thanks in advance!

try disable output console when logging file. remove stdout config.groovy log4j :

root { info 'file','stdout'}.

to

root { info 'file'}.

hope works.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -