text: import gym
  import logging
  
  
  def set_logger(logger_name, log_file, level=logging.INFO):
      log = logging.getLogger(logger_name)
      formatter = logging.Formatter('%(asctime)s : %(message)s')
      fileHandler = logging.FileHandler(log_file, mode='w')
      fileHandler.setFormatter(formatter)
      streamHandler = logging.StreamHandler()
      streamHandler.setFormatter(formatter)
  
      log.setLevel(level)
      log.addHandler(fileHandler)
      log.addHandler(streamHandler)
  
  
  def set_log(args):
      log = {}                                                                                                                                        
      set_logger(
          logger_name=args.log_name, 
          log_file=r'{0}{1}'.format("./logs/", args.log_name))
      log[args.log_name] = logging.getLogger(args.log_name)
  
      return log
  
  
  def make_env(args):
      import gym_env  # noqa
      env = gym.make(args.env_name, args=args)
      env._max_episode_steps = args.ep_max_timesteps
  
      return env
  