log.Producer API [rev. unknown]

class Producer(object):

Log producer API which sends messages to be logged to a 'consumer' object, which then prints them to stdout, stderr, files, etc.

class attributes and properties:

keywords2consumer: {'default': <function default_consumer at 0x406804c4>}

methods:

def __init__(self, keywords):

*no docstring available*

def get_consumer(self, keywords):

return a consumer matching keywords tries to find the most suitable consumer by walking, starting from the back, the list of keywords, the first consumer matching a keyword is returned (falling back to py.log.default)

def set_consumer(self, consumer):

register a consumer matching our own keywords

def __call__(self, *args):

def __getattr__(self, name):

*no docstring available*

def __repr__(self):

*no docstring available*