diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/ant.AntHandler-class.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/ant.AntHandler-class.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,259 @@ + + + + + ant.AntHandler + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 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 +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +