Return the event type for the record. Override this if you want to specify your own types. This version does a mapping using the handler's typemap attribute, which is set up in __init__() to a dictionary which contains mappings for DEBUG, INFO, WARNING, ERRO
(self, record)
| 1198 | return 0 |
| 1199 | |
| 1200 | def getEventType(self, record): |
| 1201 | """ |
| 1202 | Return the event type for the record. |
| 1203 | |
| 1204 | Override this if you want to specify your own types. This version does |
| 1205 | a mapping using the handler's typemap attribute, which is set up in |
| 1206 | __init__() to a dictionary which contains mappings for DEBUG, INFO, |
| 1207 | WARNING, ERROR and CRITICAL. If you are using your own levels you will |
| 1208 | either need to override this method or place a suitable dictionary in |
| 1209 | the handler's typemap attribute. |
| 1210 | """ |
| 1211 | return self.typemap.get(record.levelno, self.deftype) |
| 1212 | |
| 1213 | def emit(self, record): |
| 1214 | """ |