vishbin / gwt-spring-hibernate-reference

Automatically exported from code.google.com/p/gwt-spring-hibernate-reference
0 stars 0 forks source link

Logs? #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 

I download the code, change some stuff to work with my classpath an the
application was working. Then, I installed a MySQL DB to test the hibernate
functionality, and I have been experiencing some errors, I then uncommented
the log4j configuration in the web.xml, created the log4j.properties but...
the problem is that I do not know what to do because I cant find the logs. 

Can u tell me where the server logs end? or do u know why my log4j isn't
working?

log4j.properties:

log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=C:/code/workspace/logs/sneroll.log
log4j.appender.logfile.MaxFileSize=8MB
# Keep three backup files.
log4j.appender.logfile.MaxBackupIndex=3
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n

log4j.logger.java.sql=DEBUG
log4j.logger.org.hibernate=DEBUG
log4j.logger.org.springframework=DEBUG
log4j.logger.com=DEBUG

Original issue reported on code.google.com by spulid...@gmail.com on 25 Aug 2007 at 10:02

GoogleCodeExporter commented 9 years ago
The project is configured to work with a separated tomcat instance. The way I 
set up
Log4j was:

- Copy log4j.properties in $TOMCAT_ROOT/common/classes
- Copy commons-logging.jar and log4j.jar in $TOMCAT_ROOT/common/lib

And that's it.

I configured my log4j.properties to use a ConsoleAppender, so that Eclipse could
capture Tomcat's output.

Original comment by rlog...@gmail.com on 14 Sep 2007 at 9:54