title: where to find the log file in my project?
body: <p>I have created sample log4j class to test the configuration. I wrote the following Log4J properties file:</p>
  
  <pre><code>log4j.rootLogger = INFO, FILE, CONSOLE
  log4j.appender.FILE=org.apache.log4j.FileAppender
  log4j.appender.FILE.File=X:\\logs\Log4jExample.log
  log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.FILE.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  </code></pre>
  
  <p>My sample program is:</p>
  
  <pre><code>public class Log4jExample 
  {
  
      static Logger log = Logger.getLogger(Log4jExample.class.getName());
  
      public static void main(String[] args) throws IOException {
          try {
              FileInputStream fstream = new FileInputStream("D:\\textfile.txt");
              // use DataInputStream to read binary NOT text         
              // DataInputStream in = new DataInputStream(fstream);
              BufferedReader br = new BufferedReader(new InputStreamReader(fstream));
  
              String strLine;
              while ((strLine = br.readLine()) != null) {
                  System.out.println (strLine);
              }
              in.close();
          } catch (FileNotFoundException fe) {
              log.error("File Not Found",fe);
              log.warn("This is a warning message");
              log.trace("This message will not be logged since log level is set as DEBUG");      
          } catch (IOException e) {
              log.error("IOEXception occured:", e);
          }
      }
  }
  </code></pre>
  
  <p>I am receiving the expected output in my console but I am unable to locate my generated log file. I have set its path to <code>X:\\logs</code>. But no such log files are being created.</p>
  
  <p>Please help.</p>