Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Handler that filters out messages with action:log and a level
lower than some specified level.

:param inner: Handler to use for messages that pass this filter
:param level: Minimum log level to process

src/w/p/wptrunner-0.2.5/wptrunner/machlogging.py   wptrunner(Download)
from mozlog.structured import structuredlog
from mozlog.structured.handlers import StreamHandler, LogLevelFilter
from mozlog.structured.formatters import JSONFormatter, machformatter
        handler = StreamHandler(stream=fh, formatter=formatter)
        handler = LogLevelFilter(handler, logging.getLevelName(level))
        for logger in self.structured_loggers: