title: Log4j - trouble writing to own log file
body: <p>Spring 3.0 web app. Have placed the following Log4j properties file in the /WEB-INF/classes directory of the WAR file....</p>
  
  <pre><code>log4j.rootLogger=DEBUG, A1
  log4j.appender.A1=org.apache.log4j.FileAppender
  log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
  log4j.appender.A1.File=C:\\Testing.log  
  </code></pre>
  
  <p>Have a Form Controller which logs items from the form via the logger ...</p>
  
  <pre><code>@Controller 
  @RequestMapping("/FlowPartOne")
  public class FlowPartOneFormController {
  
      private final Logger logger = Logger.getLogger(this.getClass());
  
      @RequestMapping(method=RequestMethod.POST)
      public String processForm(@ModelAttribute("pageOneData") PageOneData pageOneData) {
          logger.info("Page One, Line One&gt;" + pageOneData.getDataLineOne() + "&lt;");
          logger.info("Page One, Line Two&gt;" + pageOneData.getDataLineTwo() + "&lt;");
          return "FlowPartOne";
      }
  
  } 
  </code></pre>
  
  <p>The app is run under Glassfish 3.</p>
  
  <p>When the app runs, the log output appears, but in the glassfish log directory ...\glassfish\domains\logs\server.log.</p>
  
  <p>I have created the log file on C: drive but it doesn't get used.</p>
  
  <p>I'm a bit new to Log4J, what am I doing wrong ???</p>