MCPcopy Index your code
hub / github.com/RustPython/RustPython / getEventType

Method getEventType

Lib/logging/handlers.py:1185–1196  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

emitMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected