title: How do you override BaseHTTPRequestHandler log_message() method to log to a file rather than to console (sys.stderr)?
body: <p>I'm creating a Webservice using BaseHTTPServer.HTTPServer</p>
  
  <p>I would like to log the following to be logged to a file rather than to the console. But I have not managed to find a way to do so yet.</p>
  
  <pre><code>10.23.23.19 - - [29/Nov/2013 08:39:06] "GET / HTTP/1.1" 200 -
  10.23.23.19 - - [29/Nov/2013 08:39:06] "POST / HTTP/1.1" 200 -
  10.24.20.14 - - [29/Nov/2013 08:39:27] "POST / HTTP/1.1" 200 -
  10.24.20.14 - - [29/Nov/2013 08:39:31] "POST / HTTP/1.1" 200 -
  </code></pre>
  
  <p>My Code looks like this:</p>
  
  <pre><code>from BaseHTTPServer import HTTPServer
  from pysimplesoap.server import SoapDispatcher, SOAPHandler
  .
  # The rest of the code
  .
  .
  httpd = HTTPServer(("", 8059),SOAPHandler)
      httpd.dispatcher = dispatcher
      httpd.serve_forever()
  </code></pre>
  
  <p>I'm using Python 2.6</p>