'change pupysh logging level'

def do_logging(self, arg):

    arg_parser = PupyArgumentParser(prog='logging', description='change    pupysh    logging    level')
    arg_parser.add_argument('level', choices=['DEBUG', 'INFO', 'WARNING', 'ERROR'], help='module')
    try:
        modargs = arg_parser.parse_args(shlex.split(arg))
    except PupyModuleExit:
        return
    if modargs.level:
        logging.getLogger().setLevel(modargs.level)
        self.display_success(('logging    level    set    to    %s' % modargs.level))
