sewing/__init__.py
def start_log(logger_name=None):
    '''
    Start a log that displays on stdout
    '''
    logger = logging.getLogger(logger_name)
    screen_handler = logging.StreamHandler()
    formatter = logging.Formatter(
            fmt='[%(levelname)s] %(module)s(%(funcName)s)%(asctime)s--> %(lineno)s.\t %(message)s')
    screen_handler.setFormatter(formatter)
    if not logger.handlers:
        logger.addHandler(screen_handler)
    logger.setLevel(logging.DEBUG)
    return logger

    Start a log that displays on stdout
    
Start a log that displays on stdout
Start a log that displays on stdout
def start_log(logger_name=None):
    logger = logging.getLogger(logger_name)
    screen_handler = logging.StreamHandler()
    formatter = logging.Formatter(
            fmt='[%(levelname)s] %(module)s(%(funcName)s)%(asctime)s--> %(lineno)s.\t %(message)s')
    screen_handler.setFormatter(formatter)
    if not logger.handlers:
        logger.addHandler(screen_handler)
    logger.setLevel(logging.DEBUG)
    return logger
def start_log ( logger_name = None ) : logger = logging . getLogger ( logger_name ) screen_handler = logging . StreamHandler ( ) formatter = logging . Formatter ( fmt = '[%(levelname)s] %(module)s(%(funcName)s)%(asctime)s--> %(lineno)s.\t %(message)s' ) screen_handler . setFormatter ( formatter ) if not logger . handlers : logger . addHandler ( screen_handler ) logger . setLevel ( logging . DEBUG ) return logger
Start a log that displays on stdout
Start a log that displays on stdout
'''
    Start a log that displays on stdout
    '''
logger_name