(level)
return logging.getLogger('galry')
Set the logging level among debug, info, warn.
Set the logging level among debug, info, warn.
Set the logging level among debug info warn .
def setup_logging(level):
    """Set the logging level among debug, info, warn."""
    if level == logging.DEBUG:
        logging.basicConfig(level=level,
                            format="%(asctime)s,%(msecs)03d  \
%(levelname)-7s  %(message)s",
                            datefmt='%H:%M:%S')
    else:
        logging.basicConfig(level=level,
                            # stream=sys.stdout,
                            format="%(levelname)-7s:  %(message)s")
    return logging.getLogger('galry')
def setup_logging ( level ) : if level == logging . DEBUG : logging . basicConfig ( level = level , format = "%(asctime)s,%(msecs)03d  \
%(levelname)-7s  %(message)s" , datefmt = '%H:%M:%S' ) else : logging . basicConfig ( level = level , # stream=sys.stdout, format = "%(levelname)-7s:  %(message)s" ) return logging . getLogger ( 'galry' )