Hi Buckofive, Here are a couple of relevant lines from my log4j.properties file. My file is in src/main/resources:
log4j.logger.org.hibernate=info ### log HQL query parser activity #log4j.logger.org.hibernate.hql.ast.AST=info ### log just the SQL log4j.logger.org.hibernate.SQL=debug This seems to be logging what I expect. Andy On Mon, 2008-01-07 at 15:07 -0800, buckofive wrote: > Is no one else having issues logging 3rd party libraries? I am unable to get > any hibernate or spring logs. I have tried creating several different > tapestry test projects using the 5.0.7 archetype but with I still get > nothing. They all seem to only log tapestry framework and "my pages" logs. > Could someone who has success logging hibernate post their log4j.properties > file? Please. Pretty Please ... with sugar on top. > > thanks, > B > > > > buckofive wrote: > > > > Hi all, > > > > I'm stuck at the moment trying to get log4j to log any 3rd party > > libraries. It seems to work fine for classes within my web project(ie > > page classes etc.) and if I set the root level to debug I get what looks > > like mostly web container statements. Any help would be much > > appreciated. > > > > Here is a very basic version of my log4j.properties file: > > > > [code] > > log4j.rootCategory=WARN, A1 > > > > # A1 is set to be a ConsoleAppender. > > log4j.appender.A1=org.apache.log4j.ConsoleAppender > > > > # A1 uses PatternLayout. > > log4j.appender.A1.layout=org.apache.log4j.PatternLayout > > log4j.appender.A1.layout.ConversionPattern=[%p] %c{1} %m%n > > > > log4j.category.org.apache.tapestry.TapestryFilter=info > > log4j.category.org.apache.tapestry=error > > log4j.category.tapestry=error > > > > log4j.category.com.jpa=error > > > > # Service category names are the name of the defining module class > > # and then the service id. > > log4j.category.com.jpa.services.AppModule.TimingFilter=info > > > > log4j.category.org.hibernate=debug > > > > [/code] > > > > > > Whats weird is these settings works fine in a non-tapestry application. I > > created my project with the tapestry 5.0.7 archetype and my file is > > located in <project>\src\main\resources\log4j.properties. Am I missing > > something or doing something wrong? > > > > thanks in advance, > > B > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]