Announcement Announcement Module
No announcement yet.
Problems loading log4j configuration with spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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=" itLogging" />
    <property name="arguments">

    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/

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

    thanks again!

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