MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / format

Method format

tools/python-3.11.9-amd64/Lib/logging/__init__.py:942–953  ·  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

940 self.level = _checkLevel(level)
941
942 def format(self, record):
943 """
944 Format the specified record.
945
946 If a formatter is set, use it. Otherwise, use the default formatter
947 for the module.
948 """
949 if self.formatter:
950 fmt = self.formatter
951 else:
952 fmt = _defaultFormatter
953 return fmt.format(record)
954
955 def emit(self, record):
956 """

Callers 15

checkInvalidParamMethod · 0.45
__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
runMethod · 0.45
_format_args_and_kwargsFunction · 0.45
__repr__Method · 0.45

Calls

no outgoing calls

Tested by 5

checkInvalidParamMethod · 0.36
test_litMethod · 0.36
is_valid_idMethod · 0.36