'This magic method replaces all the previous debug/information/error ones
It will basically return a func pointer to
self.add_to_queue(\'debug\',  ...) where "..." is completed later by the
caller.
@see: http://docs.python.org/library/functools.html for help on partial.
@see: METHODS defined at the top of this class'

def __getattr__(self, name):

    if (name in self.METHODS):
        return functools.partial(self._add_to_queue, name)
    else:
        msg = "'LogSink'    object    has    no    attribute    '%s'"
        raise AttributeError((msg % name))
