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

Method format

Lib/logging/__init__.py:988–999  ·  view source on GitHub ↗

Format the specified record. If a formatter is set, use it. Otherwise, use the default formatter for the module.

(self, record)

Source from the content-addressed store, hash-verified

986 self.level = _checkLevel(level)
987
988 def format(self, record):
989 """
990 Format the specified record.
991
992 If a formatter is set, use it. Otherwise, use the default formatter
993 for the module.
994 """
995 if self.formatter:
996 fmt = self.formatter
997 else:
998 fmt = _defaultFormatter
999 return fmt.format(record)
1000
1001 def emit(self, record):
1002 """

Callers 15

__repr__Method · 0.45
__repr__Method · 0.45
_set_stateMethod · 0.45
pipeFunction · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
_format_callbacksFunction · 0.45
_format_args_and_kwargsFunction · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
__repr__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected