logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: Log problem with Tomcat 5 (lots of logs)
Date Tue, 18 Sep 2007 14:17:08 GMT

Based on this configuration, by setting additivity="false", you effectively 
have no appenders attached to the loggers you've specified.  Even if the level 
is "debug", you should get no output for the following loggers and their 
children....

org.my
org.apache
org.hibernate

additivity="false" cuts off the inheritance tree.  It can be useful, but not 
the way you are using it.  You should remove additivity="true" is the default, 
so you can exclude the additivity attribute altogether to get the appropriate 
behavior for you needs.  Of course this brings us back to the original problem 
where you aren't seeing the logging behavior you expect to see.  Read on....

You never answered my question on commons-logging or SLF4J.  Many/Most 
frameworks out there choose not to depend on a particular implementation, 
choosing instread to depend on a more lightweight logger abstraction, such as 
the two mentioned.  Both define how they interact with Log4j.  For SLF4J, 
you'd have to put the slf4j-api.jar and slf4j-log4j.jar in the classpath to 
utilize log4j.  For commons-logging, having commons-logging-api.jar means you 
will end up using JDK 1.4 logging.  The API jar has no Log4j implementation. 
 What you would need is commons-logging.jar (without "-api" on the name).

BTW, for your "rolling" appender, it still doesn't appear that you define a 
File for it unless you purposefully excluded it or it got messed up when 
pasting it in to the email.  Is the file getting created?  At least the file 
should be created even if there is no output.  Does it get any output?  Maybe 
remove the console appender from the config and only use a simple FileAppender 
instead of a rolling file appender.  Once that works, you can add back 
complexity.

BTW, what I usually do is set the <root> to <level value="warn"/>.  Then I 
define certain loggers to increase output as I need it.  It's much easier to 
do this than set the <root> at some lower level and then have to define 
multiple loggers that I don't care about just to get them to shut up.

Anyway, keep trying.  We'll track down the issue at some point here.


Jake

On Tue, 18 Sep 2007 01:00:38 -0700 (PDT)
  Paolo Scopa <paoloscopa@yahoo.com> wrote:
> 
> Here it is:
> it cuts out some parts when i paste it. I change "param" with "XXparam":
> 			 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="true">
> 	<appender name="console" class="org.apache.log4j.ConsoleAppender">
> 		<layout class="org.apache.log4j.PatternLayout">
> 			<XXparam name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss} %-5p
> [%C{1}] - %m%n" />
> 		</layout>
> 	</appender>
> 
> 	<appender name="rolling" class="org.apache.log4j.RollingFileAppender">
> 		
> 		
> 		
> 		
> 		<layout class="org.apache.log4j.PatternLayout">
> 			<XXparam name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss} %-5p
> [%C{1}] - %m%n" />
> 		</layout>
> 	</appender>
> 
> 	<logger name="org.my" additivity="false">
> 		<level value="info"/>
> 	</logger>
> 
> 	<logger name="org.apache.hivemind" additivity="false">
> 		<level value="error"/> 
> 	</logger>
> 
> 	<logger name="org.apache" additivity="false">
> 		<level value="error"/> 
> 	</logger>
> 
> 	<logger name="org.hibernate" additivity="false">
> 		<level value="error"/> 
> 	</logger>
> 
> 	<logger name="org.apache.tapestry" additivity="false">
> 		<level value="error"/> 
> 	</logger>
> 
> 	<root>
> 		<level value="info"/>
> 		<appender-ref ref="console"/>
> 		<appender-ref ref="rolling"/>
> 	</root>
> 
> </log4j:configuration>
> 
> 
> 
> 
> 
> Jacob Kjome wrote:
>> 
>> 
>> Can you provide the exact contents of your log4j.xml file?  Your 
>> first posting was clearly incomplete compared to what your are actually
>> using.
>> 
>> Also, while I don't use Hibernate, I imagine it does not directly use 
>> Log4j, but uses some logger abstraction framework such as 
>> common-logging or SLF4J.  It's possible that Log4j is not actually 
>> being used for logging by these libraries, but maybe something else 
>> like JDK 1.4 logging.
>> 
>> Anyway, providing a complete file is the first step to figuring this out.
>> 
>> 
>> Jake
>> 
>> At 04:36 PM 9/17/2007, you wrote:
>>  >
>>  >(a bit desperate...)
>>  >removed any other instance of log4j from pc, its only in the web-inf/lib
>>  >directory
>>  >changed priority into level
>>  >moved to 1.2.15
>>  >logger names seem ok
>>  >set additivity to false (i know, nothing to do, but you never know...)
>>  >Actually the trace of the log4j init says "org.apache level set to
>> ERROR":
>>  >is this a joke?
>>  >
>>  >It's a bit long, but i can paste here the trace of the startup (the rest
>> is
>>  >too long with all the debug...)
>>  >
>>  >17-Sep-2007 23:11:09 org.apache.catalina.core.AprLifecycleListener
>>  >lifecycleEvent
>>  >INFO: The Apache Tomcat Native library which allows optimal performance
>> in
>>  >production environments was not found on the java.library
>>  >.path: C:\Program
>>  >Files\Java\jdk1.5.0_10\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
>>  >Files\Java\jdk1.5.0_10;C:\Program Files\Jav
>>  >a\jdk1.5.0_10;C:\bin;C:\Program
>>  >Files\Java\jdk1.5.0_10\bin;C:\j2sdk1.4.2_10\bin;C:\Applications\maven-
>>  >2.0.6\bin;C:\WINDOWS\system32;
>>  >C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Applications\Ant\bin;C:\Program
>>  >Files\Common Files\GTK\2.0\bin
>>  >17-Sep-2007 23:11:10 org.apache.coyote.http11.Http11BaseProtocol init
>>  >INFO: Initializing Coyote HTTP/1.1 on http-8080
>>  >17-Sep-2007 23:11:10 org.apache.catalina.startup.Catalina load
>>  >INFO: Initialization processed in 2016 ms
>>  >17-Sep-2007 23:11:10 org.apache.catalina.core.StandardService start
>>  >INFO: Starting service Catalina
>>  >17-Sep-2007 23:11:10 org.apache.catalina.core.StandardEngine start
>>  >INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
>>  >17-Sep-2007 23:11:10 org.apache.catalina.core.StandardHost start
>>  >INFO: XML validation disabled
>>  >log4j: reset attribute= "false".
>>  >log4j: Threshold ="null".
>>  >log4j: Retreiving an instance of org.apache.log4j.Logger.
>>  >log4j: Setting [org.my] additivity to [false].
>>  >log4j: Level value for org.my is  [info].
>>  >log4j: org.my level set to INFO
>>  >log4j: Retreiving an instance of org.apache.log4j.Logger.
>>  >log4j: Setting [org.apache.hivemind] additivity to [false].
>>  >log4j: Level value for org.apache.hivemind is  [error].
>>  >log4j: org.apache.hivemind level set to ERROR
>>  >log4j: Retreiving an instance of org.apache.log4j.Logger.
>>  >log4j: Setting [org.apache] additivity to [false].
>>  >log4j: Level value for org.apache is  [error].
>>  >log4j: org.apache level set to ERROR
>>  >log4j: Retreiving an instance of org.apache.log4j.Logger.
>>  >log4j: Setting [org.hibernate] additivity to [false].
>>  >log4j: Level value for org.hibernate is  [error].
>>  >log4j: org.hibernate level set to ERROR
>>  >log4j: Retreiving an instance of org.apache.log4j.Logger.
>>  >log4j: Setting [org.apache.tapestry] additivity to [false].
>>  >log4j: Level value for org.apache.tapestry is  [error].
>>  >log4j: org.apache.tapestry level set to ERROR
>>  >log4j: Level value for root is  [debug].
>>  >log4j: root level set to DEBUG
>>  >log4j: Class name: [org.apache.log4j.ConsoleAppender]
>>  >log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>>  >log4j: Setting property [conversionPattern] to [%d{dd MMM yyyy HH:mm:ss}
>>  >%-5p [%C{1}] - %m%n].
>>  >log4j: Adding appender named [console] to category [root].
>>  >log4j: Class name: [org.apache.log4j.RollingFileAppender]
>>  >log4j: Setting property [file] to [PROD.log].
>>  >log4j: Setting property [maxFileSize] to [1MB].
>>  >log4j: Setting property [maxBackupIndex] to [100].
>>  >log4j: Setting property [append] to [false].
>>  >log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>>  >log4j: Setting property [conversionPattern] to [%d{dd MMM yyyy HH:mm:ss}
>>  >%-5p [%C] - %m%n].
>>  >log4j: setFile called: PROD.log, false
>>  >log4j: setFile ended
>>  >log4j: Adding appender named [rolling] to category [root].
>>  >17 Sep 2007 23:11:19 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.Startup
>>  >17 Sep 2007 23:11:19 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.ClassFactory
>>  >17 Sep 2007 23:11:20 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.Startup
>>  >17 Sep 2007 23:11:20 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.BuilderFactory
>>  >
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ObjectTranslator
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.DeferredObjectTranslator
>>  >17 Sep 2007 23:11:20 DEBUG [BuilderFactoryLogic] - Set property
>> runnables to
>>  ><Element List Proxy for hivemind.Startup>
>>  >17 Sep 2007 23:11:20 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.ObjectTranslator
>>  >17 Sep 2007 23:11:20 DEBUG [BuilderFacet] - Autowired property errorLog
>> to
>>  >org.apache.hivemind.impl.ErrorLogImpl@d67067
>>  >17 Sep 2007 23:11:20 DEBUG [BuilderFactoryLogic] - Set property
>>  >contributions to <Element Map Proxy for hivemind.ObjectProviders>
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.props.GlobalPropertyObjectProvider
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.props.ApplicationPropertyObjectProvider
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.services.EngineServiceObjectProvider
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.lib.SpringObjectProvider
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.lib.BeanFactoryObjectProvider
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ServiceObjectProvider
>>  >17 Sep 2007 23:11:20 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ConfigurationObjectProvider
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ObjectInstanceObjectProvider
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ServicePropertyObjectProvider
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ClassObjectProvider
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.InfrastructureObjectProvider
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.ServiceObjectProvider
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.EagerLoad
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFactoryLogic] - Set property
>>  >servicePoints to <Element List Proxy for hivemind.EagerLoad>
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.init.MasterInitializer
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.init.MasterInitializer
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.lib.ChainFactory
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.lib.ChainFactory
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.lib.ChainBuilder
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFactoryLogic] - Set property
>> chainBuilder
>>  >to <SingletonProxy for
>>  >hivemind.lib.ChainBuilder(org.apache.hivemind.lib.chain.ChainBuilder)>
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.init.WebContextInitializer
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.init.ApplicationSpecificationInitializer
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.SetupServletApplicationGlobals
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.lib.ChainBuilder
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFacet] - Autowired property
>> classResolver
>>  >to org.apache.hivemind.impl.DefaultClassResolver@2c17f7
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFactoryLogic] - Set property
>> classFactory
>>  >to org.apache.hivemind.service.impl.ClassFactoryImpl@1cda59b
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.init.WebContextInitializer
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.ApplicationGlobals17 Sep 2007 23:11:21
>> DEBUG
>>  >[BuilderFactoryLogic] - Set property globals to <SingletonProxy for
>>  >tapestry.globals.ApplicationGlobals(org.apache.tapestry.services.Appli
>>  >cationGlobals)>
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.globals.ApplicationGlobals
>>  >17 Sep 2007 23:11:21 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service
>>  >tapestry.init.ApplicationSpecificationInitializer
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFacet] - Autowired property log to
>>  >org.apache.commons.logging.impl.Log4JLogger@8b567c
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.ClasspathResourceFactory
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFactoryLogic] - Set property
>>  >classpathResourceFactory to <SingletonProxy for
>>  >tapestry.ClasspathResourceFactory(org.apache.tapestry.services.Classpa
>>  >thResourceFactory)>
>>  >17 Sep 2007 23:11:21 DEBUG [BuilderFactoryLogic] - Set property globals
>> to
>>  ><SingletonProxy for
>>  >tapestry.globals.ApplicationGlobals(org.apache.tapestry.services.Appli
>>  >cationGlobals)>
>>  >17 Sep 2007 23:11:21 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service hivemind.ThreadEventNotifier
>>  >17 Sep 2007 23:11:21 DEBUG [PooledServiceModel] - Creating PooledProxy
>> for
>>  >service tapestry.parse.SpecificationParser
>>  >17 Sep 2007 23:11:21 DEBUG [InterceptorStackImpl] - Applying interceptor
>>  >factory hivemind.LoggingInterceptor
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.LoggingInterceptor
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFacet] - Autowired property serviceId
>> to
>>  >hivemind.LoggingInterceptor
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property factory
>> to
>>  >org.apache.hivemind.service.impl.ClassFactoryImpl@1cda59b
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property parser
>> to
>>  ><OuterProxy for
>>  >tapestry.parse.SpecificationParser(org.apache.tapestry.parse.ISpecific
>>  >ationParser)>
>>  >17 Sep 2007 23:11:22 DEBUG [ApplicationSpecificationInitializer] -
>> Checking
>>  >for existence of context:/WEB-INF/MyOrganizer/MyOrganizer.application
>>  >17 Sep 2007 23:11:22 DEBUG [ApplicationSpecificationInitializer] -
>> Checking
>>  >for existence of context:/WEB-INF/MyOrganizer.application
>>  >17 Sep 2007 23:11:22 DEBUG [ApplicationSpecificationInitializer] - Found
>>  >context:/WEB-INF/MyOrganizer.application
>>  >17 Sep 2007 23:11:22 DEBUG [LoggingUtils] - BEGIN
>>  >parseApplicationSpecification(context:/WEB-INF/MyOrganizer.application)
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.parse.SpecificationParser
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.ObjectInstanceObjectProvider
>>  >17 Sep 2007 23:11:22 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.coerce.ValueConverter
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>>  >valueConverter to <SingletonProxy for
>> 
>> >tapestry.coerce.ValueConverter(org.apache.tapestry.coerce.ValueConverter)>
>>  >17 Sep 2007 23:11:22 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.bindings.BindingSource
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>>  >bindingSource to <SingletonProxy for
>> 
>> >tapestry.bindings.BindingSource(org.apache.tapestry.binding.BindingSource)>
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service hivemind.ThreadEventNotifier
>>  >17 Sep 2007 23:11:22 DEBUG [LoggingUtils] - END
>>  >parseApplicationSpecification()
>> [ApplicationSpecification[components=null
>>  >description=null instantiatedExtensions=null libraries=null pages=null
>>  >publicId=null
>> specificationLocation=context:/WEB-INF/MyOrganizer.application
>>  >name=null engineClassName=null]]
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service
>>  >tapestry.globals.SetupServletApplicationGlobals
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property globals
>> to
>>  ><SingletonProxy for
>>  >tapestry.globals.ApplicationGlobals(org.apache.tapestry.services.Appli
>>  >cationGlobals)>
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>>  >factoryServices to <Element List Proxy for
>>  >tapestry.services.FactoryServices>
>>  >17 Sep 2007 23:11:22 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.Infrastructure
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>>  >infrastructure to <SingletonProxy for
>>  >tapestry.Infrastructure(org.apache.tapestry.services.Infrastructure)>
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.Infrastructure
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFacet] - Autowired property
>> classResolver
>>  >to org.apache.hivemind.impl.DefaultClassResolver@2c17f7
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFacet] - Autowired property errorLog
>> to
>>  >org.apache.hivemind.impl.ErrorLogImpl@16ef705
>>  >17 Sep 2007 23:11:22 DEBUG [ThreadedServiceModel] - Creating
>> ThreadedProxy
>>  >for service hivemind.ThreadLocale
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>> threadLocale
>>  >to <OuterProxy for
>>  >hivemind.ThreadLocale(org.apache.hivemind.service.ThreadLocale)>
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>>  >normalContributions to <Element List Proxy for tapestry.Infrastructure>
>>  >17 Sep 2007 23:11:22 DEBUG [BuilderFactoryLogic] - Set property
>>  >overrideContributions to <Element List Proxy for
>>  >tapestry.InfrastructureOverrides>
>>  >17 Sep 2007 23:11:22 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.DeferredObjectTranslator
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.ObjectTranslator
>>  >17 Sep 2007 23:11:23 DEBUG [BuilderFactoryLogic] - Set property
>>  >objectTranslator to <SingletonProxy for
>>  >tapestry.ObjectTranslator(org.apache.hivemind.schema.Translator)>
>>  >17 Sep 2007 23:11:23 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service tapestry.ObjectTranslator
>>  >17 Sep 2007 23:11:23 DEBUG [BuilderFacet] - Autowired property errorLog
>> to
>>  >org.apache.hivemind.impl.ErrorLogImpl@1250ff2
>>  >17 Sep 2007 23:11:23 DEBUG [BuilderFactoryLogic] - Set property
>>  >contributions to {app-property=<SingletonProxy for tapestry.props.Ap
>> 
>> >plicationPropertyObjectProvider(org.apache.hivemind.service.ObjectProvider)>,
>>  >service=<SingletonProxy for hivemind.ServiceObjectProv
>>  >ider(org.apache.hivemind.service.ObjectProvider)>,
>> instance=<SingletonProxy
>>  >for hivemind.ObjectInstanceObjectProvider(org.apache.hiv
>>  >emind.service.ObjectProvider)>, spring=<SingletonProxy for
>> 
>> >hivemind.lib.SpringObjectProvider(org.apache.hivemind.service.ObjectProvi
>>  >der)>, engine-service=<SingletonProxy for
>>  >tapestry.services.EngineServiceObjectProvider(org.apache.hivemind.serv
>>  >ice.ObjectProvider)>
>>  >, infrastructure=<SingletonProxy for
>>  >tapestry.InfrastructureObjectProvider(org.apache.hivemind.service.Obje
>>  >ctProvider)>,
>>  >class=<Sing
>>  >letonProxy for
>> 
>> >hivemind.ClassObjectProvider(org.apache.hivemind.service.ObjectProvider)>,
>>  >service-property=<SingletonProxy for hivem
>> 
>> >ind.ServicePropertyObjectProvider(org.apache.hivemind.service.ObjectProvider)>,
>>  >configuration=<SingletonProxy for hivemind.Configura
>>  >tionObjectProvider(org.apache.hivemind.service.ObjectProvider)>,
>>  >bean=<SingletonProxy for hivemind.lib.BeanFactoryObjectProvider(org
>>  >.apache.hivemind.service.ObjectProvider)>,
>> global-property=<SingletonProxy
>>  >for tapestry.props.GlobalPropertyObjectProvider(org.apach
>>  >e.hivemind.service.ObjectProvider)>}
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.ClassFinder
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.GlobalObjectPool
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.ResetEventHub
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.data.DataSqueezer
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.url.LinkFactory
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.page.PageSource
>>  >17 Sep 2007 23:11:23 DEBUG [ThreadedServiceModel] - Creating
>> ThreadedProxy
>>  >for service tapestry.multipart.ServletMultipartDecoder
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.WebResponse
>>  >17 Sep 2007 23:11:23 DEBUG [PooledServiceModel] - Creating PooledProxy
>> for
>>  >service tapestry.state.ApplicationStateManager
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.props.GlobalPropertySource
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.parse.SpecificationSource
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.error.ExceptionPresenter
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.asset.LookupAssetFactory
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.script.ScriptSource
>>  >17 Sep 2007 23:11:23 DEBUG [AbstractServiceModelImpl] - Constructing
>> core
>>  >service implementation for service
>> hivemind.ServicePropertyObjectProvider
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.request.RequestCycleFactory
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.WebContext
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.props.ApplicationPropertySource
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.markup.MarkupWriterSource
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.describe.HTMLDescriber
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.request.ResponseRenderer
>>  >17 Sep 2007 23:11:23 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.ResponseBuilder
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.request.CookieSource
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.describe.RootDescriptionReceiverFactory
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.listener.ListenerMapSource
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.l10n.ResourceLocalizer
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.error.RequestExceptionReporter
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.IRequestCycle
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.error.StaleLinkExceptionPresenter
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.ComponentMessagesSource
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.globals.WebRequest
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.listener.ListenerInvoker
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.error.StaleSessionExceptionPresenter
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.parse.TemplateSource
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.services.ServiceMap
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.props.ComponentPropertySource
>>  >17 Sep 2007 23:11:24 DEBUG [SingletonServiceModel] - Creating
>> SingletonProxy
>>  >for service tapestry.request.ServletRequestServicer
>>  >17-Sep-2007 23:11:28 org.apache.coyote.http11.Http11BaseProtocol start
>>  >INFO: Starting Coyote HTTP/1.1 on http-8080
>>  >17-Sep-2007 23:11:29 org.apache.jk.common.ChannelSocket init
>>  >INFO: JK: ajp13 listening on /0.0.0.0:8009
>>  >17-Sep-2007 23:11:29 org.apache.jk.server.JkMain start
>>  >INFO: Jk running ID=0 time=0/156  config=null
>>  >17-Sep-2007 23:11:29 org.apache.catalina.storeconfig.StoreLoader load
>>  >INFO: Find registry server-registry.xml at classpath resource
>>  >17-Sep-2007 23:11:29 org.apache.catalina.startup.Catalina start
>>  >INFO: Server startup in 19453 ms
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >Jacob Kjome wrote:
>>  >>
>>  >> Not sure what to tell you if the config you provided is what you are
>>  >> using,
>>  >> other than the fact that the RolllingFileAppender is not fully
>> configured,
>>  >> but
>>  >> maybe you stripped the details out for brevety?
>>  >>
>>  >> I would double check the logger names.  Is it "org.hibernate" or
>>  >> "org.somethingelse.hibernate", and so on.  BTW, you might as well use
>>  >> <level>
>>  >> instead of <priorty> in the <root> logger since <priority>
is
>> deprecated
>>  >> and
>>  >> you use <level> everywhere else.
>>  >>
>>  >> Also, you might try using Log4j-1.2.15, since that's the latest and
>> who
>>  >> knows
>>  >> if you might be hitting some bug in 1.2.14?
>>  >>
>>  >>
>>  >> Jake
>>  >>
>>  >>
>>  >> On Mon, 17 Sep 2007 07:48:24 -0700 (PDT)
>>  >>   Paolo Scopa <paoloscopa@yahoo.com> wrote:
>>  >>>
>>  >>> My mistake, it wasnt clear.
>>  >>> The log4j.xml is actually in the WEB-INF/classes directory and the
>>  >>> log4j-1.2.14.jar in the WEB-INF/lib.
>>  >>> There are no other cfg files around that i can see.
>>  >>> Tomcat runs in standalone mode. I remember i tried to set the debug
>>  >>> option
>>  >>> in the log4j.xml but i didnt see anything wrong with the
>> initialization.
>>  >>>
>>  >>>
>>  >>>
>>  >>>
>>  >>>
>>  >>> Jacob Kjome wrote:
>>  >>>>
>>  >>>> You say that "he log4j-1.2.14.jar and the configuration file are
in
>> my
>>  >>>> project
>>  >>>> lib directory".  Do you mean that both the jar and the XML config
>> file
>>  >>>> are
>>  >>>> in
>>  >>>> WEB-INF/lib?  That's not where the config file should should go.
 It
>>  >>>> should be
>>  >>>> in WEB-INF/classes.
>>  >>>>
>>  >>>> How are you running Tomcat?  Is it in standalone mode or run through
>>  >>>> Eclipse
>>  >>>> (or some other way)?  Do you have Log4j config files elsewhere,
such
>> as
>>  >>>> packaged with jars, in the classpath?  You might want to start
with
>>  >>>> -Dlog4j.debug=true to determine which file it is using to perform
>>  >>>> configuration.
>>  >>>>
>>  >>>>
>>  >>>> Jake
>>  >>>>
>>  >>>> On Mon, 17 Sep 2007 01:37:02 -0700 (PDT)
>>  >>>>   Paolo Scopa <paoloscopa@yahoo.com> wrote:
>>  >>>>>
>>  >>>>> Hi,
>>  >>>>> i have a problem configuring log4j with tomcat 5.5.23 and tapestry
>> 4.1.
>>  >>>>>
>>  >>>>> I tried to configure log4j to give me debug messagess of my
>> application
>>  >>>>> only
>>  >>>>> The configuration works fine outside of tomcat/tapestry: however
in
>>  >>>>> tomcat/tapestry i receive all the debug messages from hibernate,
>>  >>>>> tapestry
>>  >>>>> etc, even if the level for them is set to error.
>>  >>>>>
>>  >>>>> If i set the priority to error for the root, i don't see any
>> message
>>  >>>>> (except
>>  >>>>> errors) even for my application.
>>  >>>>> When i set it to debug, all the hibernate etc message come
up.
>>  >>>>> Any idea what am i doing wrong?
>>  >>>>>
>>  >>>>> The log4j-1.2.14.jar and the configuration file are in my project
>> lib
>>  >>>>> directory, so that it should be separated from tomcat logs.
>>  >>>>> Attached the log4j.xml i use:
>>  >>>>>
>>  >>>>> <?xml version="1.0" encoding="UTF-8"?>
>>  >>>>> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>>  >>>>>
>>  >>>>> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>>  >>>>> debug="false">
>>  >>>>>
>>  >>>>>        <appender name="console"
>>  >>>>> class="org.apache.log4j.ConsoleAppender">
>>  >>>>>           <layout class="org.apache.log4j.PatternLayout">
>>  >>>>>
>>  >>>>>           </layout>
>>  >>>>>        </appender>
>>  >>>>>
>>  >>>>>        <appender name="rolling"
>>  >>>>> class="org.apache.log4j.RollingFileAppender">
>>  >>>>>
>>  >>>>>
>>  >>>>>
>>  >>>>>
>>  >>>>>           <layout class="org.apache.log4j.PatternLayout">
>>  >>>>>
>>  >>>>>           </layout>
>>  >>>>>        </appender>
>>  >>>>>
>>  >>>>>        <logger name="org.appl">
>>  >>>>>                <level value="debug"/>
>>  >>>>>        </logger>
>>  >>>>>
>>  >>>>>        <logger name="org.apache.hivemind">
>>  >>>>>                <level value="error"/>
>>  >>>>>        </logger>
>>  >>>>>
>>  >>>>>        <logger name="org.hibernate">
>>  >>>>>                <level value="error"/>
>>  >>>>>        </logger>
>>  >>>>>
>>  >>>>>        <logger name="org.apache.tapestry">
>>  >>>>>                <level value="error"/>
>>  >>>>>        </logger>
>>  >>>>>
>>  >>>>>        <root>
>>  >>>>>                <priority value="debug"/>
>>  >>>>>                <appender-ref ref="console"/>
>>  >>>>>                <appender-ref ref="rolling"/>
>>  >>>>>        </root>
>>  >>>>>
>>  >>>>> </log4j:configuration>
>>  >>>>>
>>  >>>>> --
>>  >>>>> View this message in context:
>>  >>>>>http://www.nabble.com/Log-problem-with-Tomcat-5-%28lots-of-logs%29
>>  >-tf4465225.html#a12731649
>>  >>>>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>  >>>>>
>>  >>>>>
>>  >>>>>
>> ---------------------------------------------------------------------
>>  >>>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>  >>>>>For additional commands, e-mail: log4j-user-help@logging.apache.org
>>  >>>>>
>>  >>>>>
>>  >>>>
>>  >>>>
>>  >>>>
>> ---------------------------------------------------------------------
>>  >>>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>  >>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>  >>>>
>>  >>>>
>>  >>>>
>>  >>>
>>  >>> --
>>  >>> View this message in context:
>>  >>>http://www.nabble.com/Log-problem-with-Tomcat-5-%28lots-of-logs%29-t
>>  >f4465225.html#a12737517
>>  >>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>  >>>
>>  >>>
>>  >>> ---------------------------------------------------------------------
>>  >>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>  >>>For additional commands, e-mail: log4j-user-help@logging.apache.org
>>  >>>
>>  >>>
>>  >>
>>  >>
>>  >> ---------------------------------------------------------------------
>>  >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>  >> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>  >>
>>  >>
>>  >>
>>  >
>>  >--
>>  >View this message in context:
>>  >http://www.nabble.com/Log-problem-with-Tomcat-5-%28lots-of-logs%29-tf4
>>  >465225.html#a12745655
>>  >Sent from the Log4j - Users mailing list archive at Nabble.com.
>>  >
>>  >
>>  >---------------------------------------------------------------------
>>  >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>  >For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 
>> 
> 
> -- 
> View this message in context: 
>http://www.nabble.com/Log-problem-with-Tomcat-5-%28lots-of-logs%29-tf4465225.html#a12751968
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message