code: def setup_logging(app, disable_existing_loggers=True):
      
      conf = yaml.load(open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logging.yaml'), 'r'))
      conf['disable_existing_loggers'] = disable_existing_loggers
      conf['loggers'][app] = conf['loggers'].pop('__name__')
      logging.config.dictConfig(conf)
docs: Setup the logging using logging.yaml.
      :param app: The app which setups the logging. Used for the log's filename and for the log's name.
      :type app: str
      :param disable_existing_loggers: If False, loggers which exist when this call is made are left enabled.
      :type disable_existing_loggers: bool
      :returns: None