title: Python - Logger string formatting
body: <p>As I understand it,</p>
  
  <pre><code> 'hello {0}'.format("world")
  </code></pre>
  
  <p>is slower than:</p>
  
  <pre><code>"hello %s" % "world"
  </code></pre>
  
  <p>My question is, how does logger format the strings when passed like so:</p>
  
  <pre><code>logger.debug("hello %s", "world")
  </code></pre>
  
  <p>And assuming the logs will never be turned off would it be better to do:</p>
  
  <pre><code>logger.debug("hello %s" % "world")
  </code></pre>