Package boosted

Expand source code
import logging


class NullHandler(logging.Handler):
    def emit(self, record):
        pass


logging.getLogger("boosted").addHandler(NullHandler())

Sub-modules

boosted.api

Classes

class NullHandler (level=0)

Handler instances dispatch logging events to specific destinations.

The base handler class. Acts as a placeholder which defines the Handler interface. Handlers can optionally use Formatter instances to format records as desired. By default, no formatter is specified; in this case, the 'raw' message as determined by record.message is logged.

Initializes the instance - basically setting the formatter to None and the filter list to empty.

Expand source code
class NullHandler(logging.Handler):
    def emit(self, record):
        pass

Ancestors

  • logging.Handler
  • logging.Filterer

Methods

def emit(self, record)

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

Expand source code
def emit(self, record):
    pass