Announcement Announcement Module
Collapse
No announcement yet.
slf4j logging Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • slf4j logging

    Apologies in advance if this is not the right category, I didn't see a logging-specific one.

    I have a Spring app deployed to Tomcat with slf4j enabled.
    When I put jcl-over-slf4j.jar in the WEB-INF/lib, Spring logs to my logback file, but all the logs are duplicated.
    Like this:
    08:31:06.940 [localhost-startStop-1] INFO o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@2b61305d: defining beans [org.springframework.beans.factory.config.PropertyP laceholderConfigurer#0,openJpaVendorAdapter,openJp aDialect,abstractRouteBuilder,abstractJmsRouteBuil der,abstractCxfRouteBuilder,jmsTxManager,jms,evmRe stClient,beginBusinessProcessProvider,resumeBusine ssProcessProvider,snapshotProcessProvider,auditPro vider,activemqConnectionFactory,jmsConnectionFacto ry,auditBeanToAuditFileConverter,auditRouteBuilder ,org.springframework.beans.factory.config.Property PlaceholderConfigurer#1,template,consumerTemplate, auditContext:beanPostProcessor,auditContext]; root of factory hierarchy
    08:31:06.940 [localhost-startStop-1] INFO o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@2b61305d: defining beans [org.springframework.beans.factory.config.PropertyP laceholderConfigurer#0,openJpaVendorAdapter,openJp aDialect,abstractRouteBuilder,abstractJmsRouteBuil der,abstractCxfRouteBuilder,jmsTxManager,jms,evmRe stClient,beginBusinessProcessProvider,resumeBusine ssProcessProvider,snapshotProcessProvider,auditPro vider,activemqConnectionFactory,jmsConnectionFacto ry,auditBeanToAuditFileConverter,auditRouteBuilder ,org.springframework.beans.factory.config.Property PlaceholderConfigurer#1,template,consumerTemplate, auditContext:beanPostProcessor,auditContext]; root of factory hierarchy
    08:31:08.120 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 3133 ms
    08:31:08.120 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 3133 ms
    Other libraries (org.apache, etc) do not repeat--it's only Spring.
    I've got to be missing something obvious.

    Any help would be greatly appreciated.
    -Trey
Working...
X