def __call__(self, parser, namespace, values, option_string=None): loggers.set_console_level(self.level) setattr(namespace, self.dest, self.level)