title: Log File is not getting Generated using log4j.properties & Spring MVC
body: <p>Hi I have a Spring MVC web based application.
  I am trying to add log file. For a individual standalone sample application, I am able to create the Log, But using the same approach in my Project code the Log file is not getting created in my Local folder.
  Am I missing some thing as part of Spring MVC Java based configuration?
  Please Help.</p>
  
  <h2>log4j.properties</h2>
  
  <pre><code>log4j.rootLogger=INFO,CONSOLE,R
  log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  log4j.appender.CONSOLE.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
  
  log4j.appender.R=org.apache.log4j.RollingFileAppender
  log4j.appender.R.File=C:/logs/testlog.log
  log4j.appender.R.MaxFileSize=200KB
  log4j.appender.R.MaxBackupIndex=2
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%d - %c - %p - %m%n
  </code></pre>
  
  <h2>WebMVCConfiguration.java</h2>
  
  <pre><code>@PropertySource(value = { "classpath:application.properties","classpath:log4j.properties" })
  </code></pre>