MCPcopy Create free account
hub / github.com/ceph/ceph / __init__

Method __init__

src/pybind/mgr/mgr_module.py:701–705  ·  view source on GitHub ↗
(self, module_inst: 'MgrModuleLoggingMixin')

Source from the content-addressed store, hash-verified

699
700class MgrRootHandler(CPlusPlusHandler):
701 def __init__(self, module_inst: 'MgrModuleLoggingMixin') -> None:
702 super().__init__(module_inst)
703 self.setFormatter(logging.Formatter(
704 "[mgr %(levelname)-4s %(name)s] %(message)s"
705 ))
706
707 def emit(self, record: logging.LogRecord) -> None:
708 record.name = "mgr"

Callers

nothing calls this directly

Calls 2

FormatterMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected