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

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

src/h/e/hellanzb-HEAD/Hellanzb/Log.py   hellanzb(Download)
def warn(message):
    """ Log a message at the warning level """
    Hellanzb.recentLogs.append(logging.WARN, message)
    Hellanzb.logger.warn('%s\n' % message)
        Hellanzb.recentLogs.append(logging.ERROR, message)
    except AttributeError: # an error occured during startup
def info(message, appendLF = True, saveRecent = True):
    """ Log a message at the info level """
    if saveRecent:
        Hellanzb.recentLogs.append(logging.INFO, message)
def logShutdown(message):
    """ log messages ocurring just before shutdown, handled specially """
    Hellanzb.recentLogs.append(logging.WARN, message)
    Hellanzb.logger.log(ScrollableHandler.SHUTDOWN, message)
def noLogFile(message, appendLF = True):
    """ Send a message to stdout, avoiding both log files"""
    Hellanzb.recentLogs.append(logging.INFO, message)
    if appendLF:

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/__init__.py   hellanzb(Download)
    # codes
    Hellanzb.recentLogs.append(logging.INFO, logFileMsg)
    # Let the queue know about this new serverPool