code: def _setup_logger(self, logging_level: int, log_to_console: bool):
          
          self.logger = logging.getLogger('discord')
          self.logger.handlers = []
          self.logger.setLevel(logging_level)
          formatter = logging.Formatter(style='{', fmt='{asctime} [{levelname}] {message}', datefmt='%Y-%m-%d %H:%M:%S')
          file_handler = logging.FileHandler('pycord.log')
          file_handler.setFormatter(formatter)
          file_handler.setLevel(logging_level)
          self.logger.addHandler(file_handler)
          if log_to_console:
              stream_handler = logging.StreamHandler(sys.stdout)
              stream_handler.setFormatter(formatter)
              stream_handler.setLevel(logging_level)
              self.logger.addHandler(stream_handler)
docs: Sets up the internal logger
  
          Args:
              logging_level: what logging level to use
              log_to_console: whether or not to log to the console