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

Class MgrRootHandler

src/pybind/mgr/mgr_module.py:700–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698
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"
709 super().emit(record)
710
711
712class ClusterLogHandler(logging.Handler):

Callers 1

_configure_loggingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected