title: Log messages are not written in the log file
body: <p>I have configured a project with Log4j. I have configured log4j using <code>log4.properties</code> file.
  While the test runs it creates the <code>myLog.log</code> file but nothing is written to the log file.
  Appender we are using as <code>RollingFileAppender</code> and <code>log4j.rootLogger=DEBUG</code>.</p>
  
  <p>Can any one suggest what might be causing this problem?</p>
  
  <p>Here is log4j.properties for the project.</p>
  
  <pre><code>log4j.rootLogger= DEBUG, ConsoleAppender, Rolling 
  log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender 
  log4j.appender.ConsoleAppender.layout=org.apache.log4j.PatternLayout 
  
  log4j.appender.ConsoleAppender.layout.ConversionPattern=%d %-2p %c.%M(): %m%n 
  log4j.appender.Rolling=org.apache.log4j.RollingFileAppender 
  log4j.appender.Rolling.MaxFileSize=5MB 
  log4j.appender.Rolling.MaxBackupIndex=2 
  log4j.appender.Rolling.File=D:\Logs\myProj.log 
  log4j.appender.Rolling.layout = org.apache.log4j.PatternLayout 
  log4j.appender.Rolling.layout.ConversionPattern=%d %-4p %c.%M(): %m%n 
  ## Following two lines have been removed now.
  log4j.logger.com=WARN 
  log4j.logger.org=WARN
  </code></pre>
  
  <p>Received Log in the log file :</p>
  
  <pre><code>2012-01-16 22:02:08,534 DEBUG org.apache.http.headers.receiveResponseHeader(): &lt;&lt; content-type: application/json; charset=UTF-8
  2012-01-16 22:02:08,534 DEBUG org.apache.http.headers.receiveResponseHeader(): &lt;&lt; connection: close
  2012-01-16 22:02:08,534 DEBUG org.apache.http.headers.receiveResponseHeader(): &lt;&lt; content-length: 236
  2012-01-16 22:02:08,550 DEBUG org.apache.http.headers.receiveResponseHeader(): &lt;&lt; server: httpd.js
  2012-01-16 22:02:08,550 DEBUG org.apache.http.headers.receiveResponseHeader(): &lt;&lt; date: Tue, 17 Jan 2012 03:02:06 GMT
  2012-01-16 22:02:08,566 DEBUG org.apache.http.wire.wire(): &lt;&lt; "{"name":"clickElement","sessionId":"2fad55cf-670e-44f3-ab60-7d2f76f641e6","status":0,"value":"This action is final and cannot be undone?"}"
  2012-01-16 22:02:08,566 DEBUG org.apache.http.impl.conn.DefaultClientConnection.shutdown(): Connection shut down
  2012-01-16 22:02:08,566 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection(): Released connection is not reusable.
  2012-01-16 22:02:08,566 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute.freeEntry(): Releasing connection [HttpRoute[{}-&gt;http://127.0.0.1:7055]][null]
  2012-01-16 22:02:08,566 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute.notifyWaitingThread(): Notifying no-one, there are no waiting threads
  2012-01-16 22:02:10,566 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.getConnection(): Get connection: HttpRoute[{}-&gt;http://127.0.0.1:7055], timeout = 120000
  2012-01-16 22:02:10,566 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(): [HttpRoute[{}-&gt;http://127.0.0.1:7055]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
  2012-01-16 22:02:10,566 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getFreeEntry(): No free connections [HttpRoute[{}-&gt;http://127.0.0.1:7055]][null]
  2012-01-16 22:02:10,566 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(): Available capacity: 2000 out of 2000 [HttpRoute[{}-&gt;http://127.0.0.1:7055]][null]
  2012-01-16 22:02:10,581 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute.createEntry(): Creating new connection [HttpRoute[{}-&gt;http://127.0.0.1:7055]]
  2012-01-16 22:02:10,597 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(): Connecting to 127.0.0.1:7055
  2012-01-16 22:02:10,597 DEBUG org.apache.http.client.protocol.RequestAddCookies.process(): CookieSpec selected: best-match
  2012-01-16 22:02:10,597 DEBUG org.apache.http.client.protocol.RequestAuthCache.process(): Auth cache not set in the context
  2012-01-16 22:02:10,597 DEBUG org.apache.http.impl.client.DefaultHttpClient.tryExecute(): Attempt 1 to execute request
  2012-01-16 22:02:10,597 DEBUG org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader(): Sending request: GET /hub/session/2fad55cf-670e-44f3-ab60-7d2f76f641e6/alert_text HTTP/1.1
  2012-01-16 22:02:10,597 DEBUG org.apache.http.wire.wire(): &gt;&gt; "GET /hub/session/2fad55cf-670e-44f3-ab60-7d2f76f641e6/alert_text HTTP/1.1[\r][\n]"
  2012-01-16 22:02:10,597 DEBUG org.apache.http.wire.wire(): &gt;&gt; "Accept: application/json, image/png[\r][\n]"
  2012-01-16 22:02:10,597 DEBUG org.apache.http.wire.wire(): &gt;&gt; "Host: 127.0.0.1:7055[\r][\n]"
  2012-01-16 22:02:10,597 DEBUG org.apache.http.wire.wire(): &gt;&gt; "Connection: Keep-Alive[\r][\n]"
  2012-01-16 22:02:10,597 DEBUG org.apache.http.wire.wire(): &gt;&gt; "[\r][\n]"
  2012-01-16 22:02:10,597 DEBUG org.apache.http.headers.sendRequestHeader(): &gt;&gt; GET /hub/session/2fad55cf-670e-44f3-ab60-7d2f76f641e6/alert_text HTTP/1.1
  2012-01-16 22:02:10,597 DEBUG org.apache.http.headers.sendRequestHeader(): &gt;&gt; Accept: application/json, image/png
  2012-01-16 22:02:10,597 DEBUG org.apache.http.headers.sendRequestHeader(): &gt;&gt; Host: 127.0.0.1:7055
  2012-01-16 22:02:10,597 DEBUG org.apache.http.headers.sendRequestHeader(): &gt;&gt; Connection: Keep-Alive
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "HTTP/1.1 200 OK[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "content-type: application/json; charset=UTF-8[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "connection: close[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "content-length: 236[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "server: httpd.js[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "date: Tue, 17 Jan 2012 03:02:10 GMT[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.wire.wire(): &lt;&lt; "[\r][\n]"
  2012-01-16 22:02:10,612 DEBUG org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(): Receiving response: HTTP/1.1 200 OK
  </code></pre>