MCPcopy Index your code
hub / github.com/python/cpython / emit

Method emit

Lib/test/test_logging.py:3894–3896  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

3892 self.resource: namedtuple = resource
3893
3894 def emit(self, record):
3895 record.msg += f' {self.resource.type}'
3896 return super().emit(record)
3897
3898 Resource = namedtuple('Resource', ['type', 'labels'])
3899 resource = Resource(type='my_type', labels=['a'])

Callers

nothing calls this directly

Calls 2

superClass · 0.85
emitMethod · 0.45

Tested by

no test coverage detected