Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/s/t/stav-HEAD/server/src/server.py   stav(Download)
    # Enable logging
    try:
        from config import LOG_LEVEL
        log_level = _convert_log_level(LOG_LEVEL)
    except ImportError:

src/b/r/brat-HEAD/server/src/server.py   brat(Download)
    # Enable logging
    try:
        from config import LOG_LEVEL
        log_level = _convert_log_level(LOG_LEVEL)
    except ImportError:

src/h/e/HearPlanetAPI-0.1.1/hearplanet/api.py   HearPlanetAPI(Download)
 
log.basicConfig()
if config.LOG_LEVEL in log._levelNames:
    log.getLogger().setLevel(eval('log.%s' % config.LOG_LEVEL))
 

src/o/p/Oppomus-HEAD/libs/logger.py   Oppomus(Download)
            #getLogger() from logging package
            Logger.logging = logging.getLogger()
        Logger.logging.setLevel(config.LOG_LEVEL)
        #create file handler which logs even debug messages
        fh = logging.FileHandler(abspath('') + '/logs/'
                                 + str(current_process().name), mode='a')
        fh.setLevel(config.LOG_LEVEL)
        #create console handler with a higher log level
        ch = logging.StreamHandler()
        ch.setLevel(config.LOG_LEVEL)

src/o/p/opencloud-HEAD/utils/logger.py   opencloud(Download)
def get_logger(name=''):
    log = logging.getLogger(name)
    log.setLevel(config.LOG_LEVEL)
    mongodb_handler = MongoDBHandler()
    mongodb_handler.setLevel(config.LOG_LEVEL)