Module ant :: Class AntHandler |
[hide private]
[frames] | no frames]

# Class AntHandler

source code

    logging.Filterer --+
                       |
         logging.Handler --+
                           |
                          AntHandler

Implement a logger hanlder that prints error message using an Ant object. See Python documentation on how to use it. e.g: logging.getLogger("").addHandler(AntHandler(anttask)) This line will redirect messages to Ant logging system.

Instance Methods | [hide private]
__init__(self, task, level=logging.NOTSET) Initializes the instance - basically setting the formatter to None and the filter list to empty. | source code
emit(self, record) Handle the recordusing Ant. | source code
Inherited from `logging.Handler`: `acquire`, `close`, `createLock`, `flush`, `format`, `handle`, `handleError`, `release`, `setFormatter`, `setLevel` Inherited from `logging.Filterer`: `addFilter`, `filter`, `removeFilter`

Method Details | [hide private]

### __init__(self, task, level=logging.NOTSET) (Constructor) | source code
Initializes the instance - basically setting the formatter to None and the filter list to empty. Overrides: logging.Handler.__init__ (inherited documentation)

### emit(self, record) | source code
Handle the recordusing Ant. Overrides: logging.Handler.emit