title: Is chronological order of logging messages guaranteed?
body: <p>I'm using the <code>logging</code> module to log messages from an application server. More specifically, I use a StreamHandler to log messages to stdout/stderr, and use <code>Supervisord</code> to log those messages to files (since the server process is monitored by <code>Supervisord</code>).</p>
  
  <p>My main question is, does the order of messages in the log file <strong>always truthfully</strong> reflect the order of execution of the code? For example, if a message <code>A: this is log msg A</code> appears before message <code>B: this is log msg B</code> in a log file, then can we be 100% certain that the line of code that logs message <code>A</code> was executed before the line of the code that logs message <code>B</code>, even if the timestamps of the two messages in the log file are the same?</p>