Results 1 to 1 of 1

Thread: Problems loading log4j configuration with spring

  1. #1
    Join Date
    Jan 2011
    Location
    BsAs Argentina
    Posts
    3

    Default Problems loading log4j configuration with spring

    Hi all and thanks in advance!

    So I have problems loading log4j configuration with spring.
    I configured my applicationContext.xml as follow:

    <bean id="log4jInitializer"
    class="org.springframework.beans.factory.config.Me thodInvokingFactoryBean">
    <property name="staticMethod"
    value="org.springframework.util.Log4jConfigurer.in itLogging" />
    <property name="arguments">
    <list>
    <value>${log4jConfigPath}</value>
    </list>
    </property>
    </bean>

    and then I load the log

    Log log = LogFactory.getLog(xxx.class);

    but. nothing happend, the log file never appear


    here is the path config from my log4j configuration:

    log4j.appender.rollingFile.File=logs\application.l og

    and debiging log4jconfigurer spring class the path looks as follow, file:/C:/Rysio/Proyectos/syr/config/log4j_syr.properties

    maybe is something wrong with the configuration, really, I donīt know.

    thanks again!


    Richard
    Last edited by blackklord; Sep 6th, 2011 at 03:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •