title: Write header to a python log file, but only if a record gets written
body: <pre><code>fh = logging.FileHandler('example.log',delay = True)
  fh.setLevel(logging.INFO)
  </code></pre>
  
  <p>Since delay is True, the file will never be written unless something is logged.
  At that point, the first line in the file is the first record, and it will contain the asctime, levelname etc elements</p>
  
  <p>Using python 2.7.10, is there a sane way to add a line (or two) the first time a record is written that don't include those elements?</p>
  
  <p>I can just write to the file before using it for logging, but if I do that, I end up with logs empty but for the header.</p>
  
  <p>The desired output might look like:</p>
  
  <pre><code>Using test.fil with option 7
  2015-11-01 13:57:58,045 :log_example: INFO     fn:main result:process 4 complete --7 knights said ni
  2015-11-01 13:57:58,045 :log_example: INFO     fn:main result:process 3 complete --3 bunnies attacked
  </code></pre>
  
  <p>Thanks,</p>