def start_topology(self, log_level=None): """ Starts the topology class. Possible `log_level`s are: 'debug': all information possible 'info': informational messages 'output': default logging level defined by Mininet 'warning': only warning, error and critical messages 'error': only error and critical messages 'critical': only critical messages """ # If log_level is not specified use the configuration. if log_level is None: log_level = self.config.get(self.CONFIG_SECTION, "verbosity") # Set python logger level logger_config.set_log_level(log_level) # Run mininet if log_level == "debug": setLogLevel(log_level) logger.info("starting topology: {}".format(self.modname)) self.net.start()
def start_topology(self, log_level=None): """ Starts the topology class. Possible `log_level`s are: 'debug': all information possible 'info': informational messages 'output': default logging level defined by Mininet 'warning': only warning, error and critical messages 'error': only error and critical messages 'critical': only critical messages """ # If log_level is not specified use the configuration. if log_level is None: log_level = self.config.get(self.CONFIG_SECTION, 'verbosity') # Set python logger level logger_config.set_log_level(log_level) # Run mininet if log_level == 'debug': setLogLevel(log_level) logger.info('starting topology: {}'.format(self.modname)) self.net.start()