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

Function getLogger

Lib/logging/__init__.py:2151–2159  ·  view source on GitHub ↗

Return a logger with the specified name, creating it if necessary. If no name is specified, return the root logger.

(name=None)

Source from the content-addressed store, hash-verified

2149#---------------------------------------------------------------------------
2150
2151def getLogger(name=None):
2152 """
2153 Return a logger with the specified name, creating it if necessary.
2154
2155 If no name is specified, return the root logger.
2156 """
2157 if not name or isinstance(name, str) and name == root.name:
2158 return root
2159 return Logger.manager.getLogger(name)
2160
2161def critical(msg, *args, **kwargs):
2162 """

Callers 2

__reduce__Method · 0.85
_showwarningFunction · 0.85

Calls 1

getLoggerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…