Hi,
Running Tomcat "standalone" without Eclipse
Log4j logging is now configured and generating output to /logs/tomcat.log

except that struts logging is not generated ie.
Oct 19, 2006 11:24:26 AM org.apache.catalina.core.ApplicationContext log
INFO: action: Processing a POST for /cancel

Does struts logging need to be configured in Log4j?

==========================
log4j.properties
==========================
### Tomcat
#log4j.rootLogger=debug, R
log4j.rootLogger=info, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=info, R
#log4j.logger.org.apache.catalina=DEBUG, R
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

### direct messages to file hibernate.log ###
#log4j.appender.file=org.apache.log4j.FileAppender
#log4j.appender.file.File=hibernate.log
#log4j.appender.file.layout=org.apache.log4j.PatternLayout
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

### set log levels - for more verbose logging change 'info' to 'debug' ###

#log4j.rootLogger=warn, stdout

log4j.logger.org.hibernate=info
#log4j.logger.org.hibernate=debug

### log HQL query parser activity
#log4j.logger.org.hibernate.hql.ast.AST=debug

### log just the SQL
#log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=debug

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=debug


From: "Boris Unckel" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <users@tomcat.apache.org>
To: "Tomcat Users List" <users@tomcat.apache.org>
Subject: Re: commons-logging, Tomcat 5.5 and Hibernate 3.2
Date: Fri, 20 Oct 2006 08:34:49 +0200

Hello,

> The issue seems to be with commons-logging, Tomcat and Hibernate
>
> There are lot of articles on the Web on this but I still can't resolve
> this
> Anyone have Hibernate 3.2 and Tomcat 5.5 logging with commons-logging?
> >
> >Hi,
> >ENV1: Struts 1.2.9, Tomcat 5.5, Eclipse 3.2.0
> >ENV2: Struts 1.2.9, Tomcat 5.5, Eclipse 3.2.0, Hibernate 3.1
> >
> >The info below is logged to Tomcat in ENV1 but not ENV2.
> >How is Tomcat configured to log info?

this may be caused by the Eclipse startup of Tomcat. Try the same "standalone" without Eclipse. If you still have problems check the path and versions of commons-logging(JCL), update to JCL1.1 and enable the diagnostics:
http://jakarta.apache.org/commons/logging/troubleshooting.html#Using_JCL_Diagnostics

Regards
Boris

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Ready for the world's first international mobile film festival celebrating the creative potential of today's youth? Check out Mobile Jam Fest for your a chance to WIN $10,000! www.mobilejamfest.com


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to