Hi all,
I am trying to configure log4j for my webapp, and I almost have it working
the way I want :)
I would like all messages of INFO and above to go to the console, and all
messages for specific
packages to go to a file.
My log4j.properties is as folllows:
log4j.rootLogger=info, stdout
log4j.logger.org.hibernate=debug, file
log4j.logger.org.hibernate.additivity=false
log4j.logger.org.springframework=info, file
log4j.logger.org.springframework.additivity=false
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=${webapp.root}/logs/application.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %p [%c] {%l} - %m%n
What I am seeing is that even though the rootLogger is set to INFO, the
org.hibernate DEBUG messages are appearing in the console. The file
correctly just contains org.hibernate and org.springframework messages.
Anyone have any ideas what I'm doing wrong?
Thanks,
Mike Stephen.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]