title: How can I color Python logging output?
body: <p>Some time ago, I saw a Mono application with colored output, presumably because of its log system (because all the messages were standardized). </p>
  
  <p>Now, Python has the <code>logging</code> module, which lets you specify a lot of options to customize output. So, I'm imagining something similar would be possible with Python, but I can’t find out how to do this anywhere. </p>
  
  <p>Is there any way to make the Python <code>logging</code> module output in color? </p>
  
  <p>What I want (for instance) errors in red, debug messages in blue or yellow, and so on. </p>
  
  <p>Of course this would probably require a compatible terminal (most modern terminals are); but I could fallback to the original <code>logging</code> output if color isn't supported.</p>
  
  <p>Any ideas how I can get colored output with the logging module?</p>