text: import logging
  
  
  def set_logging_config(log_file_name):
      # logging to file
      logging.basicConfig(level=logging.DEBUG,
                          format='%(asctime)s %(levelname)-8s %(message)s',
                          datefmt='%m-%d %H:%M',
                          filename=log_file_name)
      # logging to console
      console = logging.StreamHandler()
      console.setLevel(logging.INFO)
      formatter = logging.Formatter('%(levelname)-8s: %(message)s')
      console.setFormatter(formatter)
      logging.getLogger('').addHandler(console)
  