docs: def get_logger(name, CFG=None):
      """set up logging for a service using the py 2.7 dictConfig
      """
  
      logger = logging.getLogger(name)
  
      if CFG:
          # Make log directory if it doesn't exist
          for handler in CFG.get('handlers', {}).itervalues():
              if 'filename' in handler:
                  log_dir = os.path.dirname(handler['filename'])
                  if not os.path.exists(log_dir):
                      os.makedirs(log_dir)
          try:
              #TODO: This requires python 2.7
              logging.config.dictConfig(CFG)
          except AttributeError:
              print >> sys.stderr, '"logging.config.dictConfig" doesn\'t seem to be supported in your python'
              raise
  
      return logger