title: Python Logging Module logging timestamp to include microsecond
body: <p>I am using python's logging module for logs, but needed the timestamp to include microsecond. It seems the timestamp can only get as precise as millisecond.
  Here's my test code</p>
  
  <pre><code>import logging
  
  logging.basicConfig(format='%(asctime)s %(levelname)s {%(module)s} [%(funcName)s] %(message)s',
  
      datefmt='%Y-%m-%d,%H:%M:%S:%f', level=logging.INFO)
  
  class log2_test():
  
      def test_class(self):
  
          logging.warning("Warning2 inside the class")
  
  def get_started2():
  
      logging.info("Logged2 Here")
  
  if __name__ == '__main__':
      get_started2()
  </code></pre>
  
  <p>Here's the output I get --</p>
  
  <pre><code>2015-07-09,16:36:37:f INFO {logger} [get_started2] Logged2 Here
  </code></pre>
  
  <p>Somehow, %f is not recognized.
  Python version is 2.7.6.</p>
  
  <p>How do I get the timestamp to include microseconds?
  Thanks in advance.</p>