MCPcopy Index your code
hub / github.com/RustPython/RustPython / getLogger

Function getLogger

Lib/logging/__init__.py:2141–2149  ·  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

2139#---------------------------------------------------------------------------
2140
2141def getLogger(name=None):
2142 """
2143 Return a logger with the specified name, creating it if necessary.
2144
2145 If no name is specified, return the root logger.
2146 """
2147 if not name or isinstance(name, str) and name == root.name:
2148 return root
2149 return Logger.manager.getLogger(name)
2150
2151def critical(msg, *args, **kwargs):
2152 """

Callers 2

__reduce__Method · 0.85
_showwarningFunction · 0.85

Calls 2

isinstanceFunction · 0.85
getLoggerMethod · 0.80

Tested by

no test coverage detected