Did I find the right examples for you? yes no

All Samples(147)  |  Call(78)  |  Derive(51)  |  Import(18)
A handler class which buffers logging records in memory, periodically
flushing them to a target handler. Flushing occurs whenever the buffer
is full, or when an event of a certain severity or greater is seen.

src/r/o/rootpy-0.7.1/rootpy/logger/multilogging.py   rootpy(Download)
                mode='w')
        memoryHandler = logging.handlers.MemoryHandler(
                capacity=self.capacity,
                target=h)
        f = logging.Formatter(

src/r/o/rootpy-HEAD/rootpy/logger/multilogging.py   rootpy(Download)
                mode='w')
        memoryHandler = logging.handlers.MemoryHandler(
                capacity=self.capacity,
                target=h)
        f = logging.Formatter(

src/a/d/advancedcaching-HEAD/advancedcaching/core.py   advancedcaching(Download)
        if ('debug_log_to_http' in self.settings and self.settings['debug_log_to_http']) or '--remote' in argv:
            http_handler = logging.handlers.HTTPHandler("danielfett.de", "http://www.danielfett.de/files/collect.php")
            buffering_handler = logging.handlers.MemoryHandler(100, target = http_handler)
            logging.getLogger('').addHandler(buffering_handler)
            logging.getLogger('').setLevel(logging.DEBUG)

src/i/n/infi.logs_collector-0.0.16/src/infi/logs_collector/__init__.py   infi.logs_collector(Download)
def create_logging_handler_for_collection(tempdir, prefix):
    from sys import maxsize
    from os import path
    from logging import FileHandler, DEBUG, Formatter
    from logging.handlers import MemoryHandler
    target = FileHandler(path.join(tempdir, "collection-logs", "{}.{}.debug.log".format(prefix, get_timestamp())))
    target.setFormatter(Formatter(**LOGGING_FORMATTER_KWARGS))
    handler = MemoryHandler(maxsize, target=target)

src/p/y/pyphant1-HEAD/src/pyphant/pyphant/wxgui2/wxPyphantApplication.py   pyphant1(Download)
LOGDIR = getPyphantPath()
import logging
from logging.handlers import MemoryHandler
logging.basicConfig(level=logging.NOTSET,
                    filename=os.path.join(LOGDIR, u'pyphant.log'),
console = logging.StreamHandler()
console.setLevel(logging.WARNING)
pdmh = MemoryHandler(1000, flushLevel=logging.CRITICAL + 1)
pdmh.setLevel(logging.WARNING)
logging.getLogger('').addHandler(pdmh)

src/d/i/digsby-HEAD/digsby/src/main.py   digsby(Download)
        capacity = getattr(sys.opts, 'log_buffer', 0)
        if capacity:
            from logging.handlers import MemoryHandler
            hdlr = MemoryHandler(capacity, target=hdlr)
 

src/o/s/os-HEAD/subtrees/waf/waflib/Logs.py   os(Download)
def make_mem_logger(name, to_log, size=10000):
	"""
	Create a memory logger to avoid writing concurrently to the main logger
	"""
	from logging.handlers import MemoryHandler
	logger = logging.getLogger(name)
	hdlr = MemoryHandler(size, target=to_log)

src/p/y/pyphant-1.0b3/pyphant/wxgui2/wxPyphantApplication.py   pyphant(Download)
LOGDIR = getPyphantPath()
import logging
from logging.handlers import MemoryHandler
logging.basicConfig(level=logging.NOTSET,
                    filename=os.path.join(LOGDIR, u'pyphant.log'),
console = logging.StreamHandler()
console.setLevel(logging.WARNING)
pdmh = MemoryHandler(1000, flushLevel=logging.CRITICAL + 1)
pdmh.setLevel(logging.WARNING)
logging.getLogger('').addHandler(pdmh)

src/a/u/aubio-HEAD/waflib/Logs.py   aubio(Download)
def make_mem_logger(name,to_log,size=10000):
	from logging.handlers import MemoryHandler
	logger=logging.getLogger(name)
	hdlr=MemoryHandler(size,target=to_log)
	formatter=logging.Formatter('%(message)s')

src/k/u/kupfer-HEAD/waflib/Logs.py   kupfer(Download)
def make_mem_logger(name, to_log, size=10000):
	"""
	Create a memory logger to avoid writing concurrently to the main logger
	"""
	from logging.handlers import MemoryHandler
	logger = logging.getLogger(name)
	hdlr = MemoryHandler(size, target=to_log)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next