Tomcat use commons.logging, so you can choose either java.util.logging or Log4J <http://logging.apache.org/log4j>,
http://tomcat.apache.org/tomcat-5.5-doc/logging.html
But hibernate use Log4J
http://www.hibernate.org/97.html

I permanantly use Tomcat/hibenate/Spring without any logging issue ?

Here is my log4j.properties

# Global logging configuration
log4j.rootLogger=INFO, stdout

# configuration...
org.apache.commons.digester.Digester=INFO

# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n

Put it somewhere in your classPath (like in the WEB-INF/classes directory) and all the logs should drop in catalina.out.

Hope this helps.


Mic.

You should have
ave Kennedy a écrit :
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?

From: "Dave Kennedy" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <users@tomcat.apache.org>
To: users@tomcat.apache.org
Subject: How to log INFO in Tomcat
Date: Thu, 19 Oct 2006 14:14:46 -0700

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?

log/localhost.2006-10-19.log
...
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Processing a POST for /process
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action:  Looking for ActionForm bean under attribute 'detailForm'
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Creating new ActionForm instance of class 'action.DetailForm'
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Storing instance under attribute 'detailForm' in scope 'request'
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action:  Populating bean properties from this request
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action:  Validating input form properties
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Looking for Action instance for class action.ProcessDVDAction
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action:   Double checking for Action instance already there
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action:   Creating new Action instance
Oct 19, 2006 1:20:31 PM org.apache.catalina.core.ApplicationContext log
INFO: action: Processing a POST for /cancel

_________________________________________________________________
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]


_________________________________________________________________
Experience Live Search from your PC or mobile device today. http://www.live.com/?mkt=en-ca


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




---------------------------------------------------------------------
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