title: Merging and sorting log files in Python
body: <p>I am completely new to python and I have a serious problem which I cannot solve.</p>
  
  <p>I have a few log files with identical structure:</p>
  
  <pre><code>[timestamp] [level] [source] message
  </code></pre>
  
  <p>For example:</p>
  
  <pre><code>[Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1] error message
  </code></pre>
  
  <p>I need to write a program in pure Python which should merge these log files into one file and then sort the merged file by timestamp. After this operation I wish to print this result (the contents of the merged file) to <code>STDOUT</code> (console).</p>
  
  <p>I don't understand how to do this would like help. Is this possible?</p>