Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def init_logging(verbose = False, debug = False):
    # debug implies verbose
    if verbose:
        level = logging.INFO
    elif debug:
        level = logging.DEBUG
    else:
        level = logging.WARNING
    
    l = logging.getLogger("chisubmit")
    l.setLevel(logging.DEBUG)
    
    fh = logging.StreamHandler()
    fh.setLevel(level)
    formatter = logging.Formatter('%(asctime)s %(levelname)-8s %(message)s')
    fh.setFormatter(formatter)
    l.addHandler(fh)        
        


src/c/h/chisubmit-0.1.1/src/chisubmit/cli/__init__.py   chisubmit(Download)
 
    chisubmit.core.init_chisubmit(args.dir, args.config)
    log.init_logging(args.verbose, args.debug)
 
    if args.subcommand not in SUBCOMMANDS_NO_COURSE: