third_party/blink/tools/blinkpy/style/checker.py
def _create_log_handlers(stream):
    """Create and return a default list of logging.Handler instances.

    Format WARNING messages and above to display the logging level, and
    messages strictly below WARNING not to display it.

    Args:
      stream: See the configure_logging() docstring.
    """
    # Handles logging.WARNING and above.
    error_handler = logging.StreamHandler(stream)
    error_handler.setLevel(logging.WARNING)
    formatter = logging.Formatter('%(levelname)s: %(message)s')
    error_handler.setFormatter(formatter)

    # Create a logging.Filter instance that only accepts messages
    # below WARNING (i.e. filters out anything WARNING or above).
    non_error_filter = logging.Filter()
    # The filter method accepts a logging.LogRecord instance.
    non_error_filter.filter = lambda record: record.levelno < logging.WARNING

    non_error_handler = logging.StreamHandler(stream)
    non_error_handler.addFilter(non_error_filter)
    formatter = logging.Formatter('%(message)s')
    non_error_handler.setFormatter(formatter)

    return [error_handler, non_error_handler]
Create and return a default list of logging.Handler instances.

    Format WARNING messages and above to display the logging level, and
    messages strictly below WARNING not to display it.

    Args:
      stream: See the configure_logging() docstring.
    
Create and return a default list of logging.Handler instances.
Format WARNING messages and above to display the logging level, and
messages strictly below WARNING not to display it.
Create and return a default list of logging . Handler instances . Format WARNING messages and above to display the logging level and messages strictly below WARNING not to display it .
def _create_log_handlers(stream):
    error_handler = logging.StreamHandler(stream)
    error_handler.setLevel(logging.WARNING)
    formatter = logging.Formatter('%(levelname)s: %(message)s')
    error_handler.setFormatter(formatter)
    non_error_filter = logging.Filter()
    non_error_filter.filter = lambda record: record.levelno < logging.WARNING
    non_error_handler = logging.StreamHandler(stream)
    non_error_handler.addFilter(non_error_filter)
    formatter = logging.Formatter('%(message)s')
    non_error_handler.setFormatter(formatter)
    return [error_handler, non_error_handler]
def _create_log_handlers ( stream ) : error_handler = logging . StreamHandler ( stream ) error_handler . setLevel ( logging . WARNING ) formatter = logging . Formatter ( '%(levelname)s: %(message)s' ) error_handler . setFormatter ( formatter ) non_error_filter = logging . Filter ( ) non_error_filter . filter = lambda record : record . levelno < logging . WARNING non_error_handler = logging . StreamHandler ( stream ) non_error_handler . addFilter ( non_error_filter ) formatter = logging . Formatter ( '%(message)s' ) non_error_handler . setFormatter ( formatter ) return [ error_handler , non_error_handler ]
Create and return a default list of logging.Handler instances.
Create and return a default list of logging . Handler instances .
"""Create and return a default list of logging.Handler instances.

    Format WARNING messages and above to display the logging level, and
    messages strictly below WARNING not to display it.

    Args:
      stream: See the configure_logging() docstring.
    """ # Handles logging.WARNING and above. # Create a logging.Filter instance that only accepts messages # below WARNING (i.e. filters out anything WARNING or above). # The filter method accepts a logging.LogRecord instance.
stream
See the configure_logging() docstring.
See the configure_logging () docstring .