Announcement Announcement Module
Collapse
No announcement yet.
Problems loading log4j configuration with spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 03:00 PM.
Working...
X