title: how to use logging inside Gevent?
body: <p>I have a code like:</p>
  
  <pre><code>log = logging.getLogger(__file__)
  
  def func():
      print "1"
      log.debug("Printed")
  
  g = gevent.spawn(func)
  g.join()
  </code></pre>
  
  <p>but when I ran it my log doesn't show in shell. Any ideas? Is there a better way to do logging inside gevent based coroutines?</p>