code: def setup_logging(config=None):
      
      # TODO: integrate in general config file
      print(__name__)
      if config and config.get('logging'):
          logging.config.dictConfig(config.get('logging'))
      else:
          logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s',
                              level=logging.DEBUG)
docs: Setup logging configuration.