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)
| 1183 | return 0 |
| 1184 | |
| 1185 | def getEventType(self, record): |
| 1186 | """ |
| 1187 | Return the event type for the record. |
| 1188 | |
| 1189 | Override this if you want to specify your own types. This version does |
| 1190 | a mapping using the handler's typemap attribute, which is set up in |
| 1191 | __init__() to a dictionary which contains mappings for DEBUG, INFO, |
| 1192 | WARNING, ERROR and CRITICAL. If you are using your own levels you will |
| 1193 | either need to override this method or place a suitable dictionary in |
| 1194 | the handler's typemap attribute. |
| 1195 | """ |
| 1196 | return self.typemap.get(record.levelno, self.deftype) |
| 1197 | |
| 1198 | def emit(self, record): |
| 1199 | """ |