Mystery solved. This is nothing to do with BASE -- it's Tomcat's fault. It looks like the Tomcat people have changed tack and they are now including a log4j.xml config file by default with Tomcat (it used to be a log4j.properties file, which is what I was initially looking for). This presumably applies to versions from 5.5 onwards -- I never had this problem with 5.0.
This file sits in $CATALINA_HOME/common/classes and overrides any application-specific log files that users might supply, including that of BASE. By default the log level in this file is set to level debug, hence all the output from BASE. So the BASE log file wasn't getting picked up at all. To get round this problem, just rename or move Tomcat's log4j.xml file, and make sure any other log4j config files (both .xml and .properties files sit in their respective application's WEB-INF directory. Micha ================================== Dr Micha M Bayer Bioinformatics Specialist Genetics Programme The Scottish Crop Research Institute Invergowrie Dundee DD2 5DA Scotland, UK Telephone +44(0)1382 562731 ext. 2309 Fax +44(0)1382 562426 http://www.scri.sari.ac.uk/MichaBayer.htm ============================= > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:basedb-users- > [EMAIL PROTECTED] On Behalf Of Nicklas Nordborg > Sent: 07 November 2006 10:53 > To: BASE ML > Subject: Re: [base] logging in BASE2 > > Micha Bayer wrote: > > Hi Nicklas, > > > > the output I am getting is mostly info level messages from both the BASE > > core and hibernate (no errors or warnings, and BASE generally seems > > happy otherwise). When I load the BASE front page into the browser, the > > log starts up with this: > > > > INFO: Server startup in 3389 ms > > 0 [http-8080-Processor25] INFO net.sf.basedb.core.Application - > > Starting BASE > > 0 [http-8080-Processor25] INFO net.sf.basedb.core.Application - > > auth.driver = null > > 484 [http-8080-Processor25] INFO org.hibernate.cfg.Environment - > > Hibernate 3.2 cr3 > > [snip] > > > etc. -- I am getting hundreds more lines before I have even logged in, > > most of them from hibernate. > > > > I have checked the log4j.properties file again -- the log level for > > stdout is set to warn and the logging for hibernate is set to off, so > > none of this should be getting logged. I have even set the properties to > > log to file rather than stdout but catalina.out is still getting all of > > this, so it looks like the settings are not getting picked up at all. > > > > Is there any in-code configuration going on anywhere? > > It looks like the log4j.properties file is beeing ignored. Are you sure > that Tomcat is using the directory you think it is using? > > It could also be that some other logging system is used instead of > Log4j. I base this on two observations. > > 1) Your log output is slightly different from mine. It starts with the > text [http-8080-Processor25] which is not present in my output: > > 11:29:14,782 INFO Environment:500 - Hibernate 3.2 cr3 > > If you havn't modified the log4j.properties file your log messages > should look like that above. > > 2) If I delete the log4j.properties file I don't get any log messages at > all except: > log4j:WARN No appenders could be found for logger > (org.apache.commons.digester.Digester.sax). > log4j:WARN Please initialize the log4j system properly. > > More about Tomcat loggin can be found here: > http://tomcat.apache.org/tomcat-5.5-doc/logging.html > > /Nicklas > > ------------------------------------------------------------------------ - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > The BASE general discussion mailing list > basedb-users@lists.sourceforge.net > unsubscribe: send a mail with subject "unsubscribe" to > [EMAIL PROTECTED] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ DISCLAIMER: This email is from the Scottish Crop Research Institute, but the views expressed by the sender are not necessarily the views of SCRI and its subsidiaries. This email and any files transmitted with it are confidential to the intended recipient at the e-mail address to which it has been addressed. It may not be disclosed or used by any other than that addressee. If you are not the intended recipient you are requested to preserve this confidentiality and you must not use, disclose, copy, print or rely on this e-mail in any way. Please notify [EMAIL PROTECTED] quoting the name of the sender and delete the email from your system. Although SCRI has taken reasonable precautions to ensure no viruses are present in this email, neither the Institute nor the sender accepts any responsibility for any viruses, and it is your responsibility to scan the email and the attachments (if any). ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to [EMAIL PROTECTED]