title: how to setup access/error log for http.ListenAndServe
body: <p>I am using the following for a simple server. I am wondering how to setup an access log for all the requests logging the timestamp, method, request url and the http response code.</p>
  
  <pre><code>http.HandleFunc("/foo", funcFoo)
  err := http.ListenAndServe("127.0.0.1:2074", nil)
  </code></pre>