title: Python logging using custom timestamps (not current timestamp)
body: <p>I am using the logging module in the following way:</p>
  
  <pre><code>logging.basicConfig(level=logging.DEBUG,
                      format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
                      filename=my_filename,
                      filemode='w')
  </code></pre>
  
  <p>and </p>
  
  <pre><code>logging.info("Set up logger")
  </code></pre>
  
  <p>for writing. The output is:</p>
  
  <pre><code>2017-11-05 19:10:22,762 root      INFO     Set up logger
  </code></pre>
  
  <p>QUESTION: instead of the current timestamp, I would like to have a past (or future, whatever) timestamp. So whenever I want to write something in the log, I can pass the date as argument with something like:</p>
  
  <pre><code>logging.info(msg="Set up logger", date='2010-01-01 19:10:22,762')
  </code></pre>
  
  <p>in order to have</p>
  
  <pre><code>2010-01-01 19:10:22,762 root      INFO    Set up logger
  </code></pre>
  
  <p>Any help?</p>