def configure_logger(self, tc_config_log_filename=None, tc_output_log_filename=None):
        """Configure selenium instance logger

        :param tc_config_log_filename: test case specific logging config file
        :param tc_output_log_filename: test case specific output logger file
        """
        # Get config logger filename
        config_log_filename = DriverWrappersPool.get_configured_value('Config_log_filename', tc_config_log_filename,
                                                                      'logging.conf')
        config_log_filename = os.path.join(DriverWrappersPool.config_directory, config_log_filename)

        # Configure logger only if logging filename has changed
        if self.config_log_filename != config_log_filename:
            # Get output logger filename
            output_log_filename = DriverWrappersPool.get_configured_value('Output_log_filename', tc_output_log_filename,
                                                                          'toolium.log')
            output_log_filename = os.path.join(DriverWrappersPool.output_directory, output_log_filename)
            output_log_filename = output_log_filename.replace('\\', '\\\\')

            try:
                logging.config.fileConfig(config_log_filename, {'logfilename': output_log_filename}, False)
            except Exception as exc:
                print("[WARN] Error reading logging config file '{}': {}".format(config_log_filename, exc))
            self.config_log_filename = config_log_filename
            self.output_log_filename = output_log_filename
            self.logger = logging.getLogger(__name__)
def configure_logger ( self , tc_config_log_filename = None , tc_output_log_filename = None ) : config_log_filename = DriverWrappersPool . get_configured_value ( 'Config_log_filename' , tc_config_log_filename , 'logging.conf' ) config_log_filename = os . path . join ( DriverWrappersPool . config_directory , config_log_filename ) if self . config_log_filename != config_log_filename : output_log_filename = DriverWrappersPool . get_configured_value ( 'Output_log_filename' , tc_output_log_filename , 'toolium.log' ) output_log_filename = os . path . join ( DriverWrappersPool . output_directory , output_log_filename ) output_log_filename = output_log_filename . replace ( '\\' , '\\\\' ) try : logging . config . fileConfig ( config_log_filename , { 'logfilename' : output_log_filename } , False ) except Exception as exc : print ( "[WARN] Error reading logging config file '{}': {}" . format ( config_log_filename , exc ) ) self . config_log_filename = config_log_filename self . output_log_filename = output_log_filename self . logger = logging . getLogger ( __name__ )
Configure selenium instance logger

        :param tc_config_log_filename: test case specific logging config file
        :param tc_output_log_filename: test case specific output logger file