fork download
  1.  
  2. import logging
  3. logger = logging.getLogger(__name__)
  4.  
  5. def foo():
  6. logger.debug("message")
  7.  
  8.  
  9. if __name__ == '__main__':
  10. logging.basicConfig(format="[%(funcName)s] %(message)s", level=logging.DEBUG)
  11. foo()
Success #stdin #stdout 0.02s 5272KB
stdin
Standard input is empty
stdout
Standard output is empty