<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_webdriver_logs(self, test_name):
 """Get webdriver logs and write them to log files :param test_name: test that has generated these logs """

        try:
            log_types = self.driver_wrapper.driver.log_types
        except Exception:
            # geckodriver does not implement log_types, but it implements get_log for client and server
            log_types = ['client', 'server']

        self.logger.debug("Reading logs from '%s' and writing them to log files", ', '.join(log_types))
        for log_type in log_types:
            try:
                self.save_webdriver_logs_by_type(log_type, test_name)
            except Exception:
                # Capture exceptions to avoid errors in teardown method
                pass