MCPcopy Create free account
hub / github.com/ipython/traitlets / _log_default

Method _log_default

traitlets/config/configurable.py:487–493  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

485
486 @default("log")
487 def _log_default(self) -> LoggerType:
488 if isinstance(self.parent, LoggingConfigurable):
489 assert self.parent is not None
490 return t.cast(logging.Logger, self.parent.log)
491 from traitlets import log
492
493 return log.get_logger()
494
495 def _get_log_handler(self) -> logging.Handler | None:
496 """Return the default Handler

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected