Skip to Content
0
Former Member
Jun 07, 2006 at 02:14 PM

log4j properties: where???

260 Views

I am trying to solve some Hibernate problem, so i need the logging.

I have this properties file:

#set the level of the root logger 
log4j.rootLogger = info, file
#set logger file
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=%p [%t] %c{2} (%M:%L) :: %m%n
#log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

log4j.logger.org.hibernate=debug, file

I put this file in the web-inf/classes folder of my web project, but no logfile is made.

What must I do get the messages in a logfile?