grnd / python-patch

Automatically exported from code.google.com/p/python-patch
0 stars 0 forks source link

Add helper functions to configure logging #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
To enable logging when used as a library, you have to:

  import logging
  logger = logging.getLogger('patch')
  logger.setLevel(logging.DEBUG)
  loghandler = logging.StreamHandler()
  logger.addHandler(loghandler)

This suxx. The proposed change is to track logging system state and configure 
it with easier calls.

Original issue reported on code.google.com by techtonik@gmail.com on 17 Jun 2013 at 5:43