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

Method mapPriority

Lib/logging/handlers.py:972–980  ·  view source on GitHub ↗

Map a logging level name to a key in the priority_names map. This is useful in two scenarios: when custom levels are being used, and in the case where you can't do a straightforward mapping by lowercasing the logging level name because of locale- specific iss

(self, levelName)

Source from the content-addressed store, hash-verified

970 logging.Handler.close(self)
971
972 def mapPriority(self, levelName):
973 """
974 Map a logging level name to a key in the priority_names map.
975 This is useful in two scenarios: when custom levels are being
976 used, and in the case where you can't do a straightforward
977 mapping by lowercasing the logging level name because of locale-
978 specific issues (see SF #1524081).
979 """
980 return self.priority_map.get(levelName, "warning")
981
982 ident = '' # prepended to all messages
983 append_nul = True # some old syslog daemons expect a NUL terminator

Callers 1

emitMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected