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
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
secondary.storage.driver = null
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
cache.timeout = 20 minutes
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
permission.timeout = 10 minutes
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
userfiles = \home\tomcat\projects\base-data
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.dialect = org.hibernate.dialect.MySQLInnoDBDiale
ct
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.driver = com.mysql.jdbc.Driver
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.url = jdbc:mysql://sbrn1/base2
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.username = base2user
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.queries = /mysql-queries.xml
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.extended-properties = /extended-properties.xml
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.raw-data-types = /raw-data-types.xml
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.dynamic.catalog = base2dynamic
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.dynamic.schema = null
0    [http-8080-Processor25] INFO  net.sf.basedb.core.Application  -
db.batch-size = 50
313  [http-8080-Processor25] INFO  net.sf.basedb.core.ExtendedProperties
- Loaded extended properties from file: /exten
ded-properties.xml
422  [http-8080-Processor25] INFO  net.sf.basedb.core  - Loaded raw data
types from file: /raw-data-types.xml
484  [http-8080-Processor25] INFO  org.hibernate.cfg.Environment  -
Hibernate 3.2 cr3
500  [http-8080-Processor25] INFO  org.hibernate.cfg.Environment  -
hibernate.properties not found
500  [http-8080-Processor25] INFO  org.hibernate.cfg.Environment  -
Bytecode provider name : cglib
516  [http-8080-Processor25] INFO  org.hibernate.cfg.Environment  -
using JDK 1.4 java.sql.Timestamp handling
609  [http-8080-Processor25] INFO  org.hibernate.cfg.Configuration  -
Searching for mapping documents in jar: BASE2Core.
jar
609  [http-8080-Processor25] INFO  org.hibernate.cfg.Configuration  -
Found mapping document in jar: net/sf/basedb/core/
data/AnnotationData.hbm.xml
828  [http-8080-Processor25] INFO  org.hibernate.cfg.HbmBinder  -
Mapping class: net.sf.basedb.core.data.AnnotationData
-> Annotations
890  [http-8080-Processor25] INFO  org.hibernate.cfg.HbmBinder  -
Mapping collection: net.sf.basedb.core.data.Annotation
Data.inheritingSets -> InheritedAnnotations
890  [http-8080-Processor25] INFO  org.hibernate.cfg.Configuration  -
Found mapping document in jar: net/sf/basedb/core/
data/AnnotationSetData.hbm.xml
922  [http-8080-Processor25] INFO  org.hibernate.cfg.HbmBinder  -
Mapping class: net.sf.basedb.core.data.AnnotationSetDa
ta -> AnnotationSets



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?

Thanks

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 07:17
> To: BASE ML
> Subject: Re: [base] logging in BASE2
> 
> Micha Bayer wrote:
> > Hi,
> >
> > I am running BASE2.1 under Tomcat 5.5 and I am getting my
catalina.out
> > log swamped by BASE log statements. Is there any way I can turn this
> > off?
> 
> It doesn't sound normal. What kind of log messages do you get?
> 
> > I have tried to change the log levels in the log4j.properties file
in
> > www\WEB-INF\classes\, and even deleted this file but it seems to
have
> > made no difference.
> >
> > Is the logging configured in the BASE source perhaps?
> 
> Logging done by BASE is controlled by the log4j.properties file which
> you already have found. The default settings doesn't log anything
except
> errors and warnings and if these start to appear frequently it is
> usually something that should be taken care of. Deleting the file is
> probably not a good idea. It used to cause Hibernate to output lots of
> INFO-level messages.
> 
> /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]

Reply via email to