title: Need to get log file in folder in java
body: <p>This is my log4j property file, i need to get log file in this location, but it didn't create </p>
  
  <pre><code># Root logger option
  log = D:\\log
  log4j.rootLogger=ALL, stdout
  
  # Direct log messages to stdout
  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>in my class i initiate like this </p>
  
  <pre><code>private static final Logger LOGGER = Logger.getLogger(test.class);
  </code></pre>
  
  <p>&amp; i added info or err when i need ex</p>
  
  <pre><code>LOGGER.info("Get Request from Service"); 
  </code></pre>
  
  <p>I can get this output in console but i didn't get that log file. </p>