MCPcopy Index your code
hub / github.com/dataease/SQLBot / _get_logger

Method _get_logger

backend/common/utils/utils.py:172–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171 @staticmethod
172 def _get_logger() -> logging.Logger:
173 frame = inspect.currentframe()
174 try:
175 caller_frame = frame.f_back.f_back
176 module_name = caller_frame.f_globals.get('__name__', '__main__')
177 return CallerLogger(logging.getLogger(module_name))
178 finally:
179 del frame
180
181
182 @staticmethod

Callers 6

debugMethod · 0.80
infoMethod · 0.80
warningMethod · 0.80
errorMethod · 0.80
exceptionMethod · 0.80
criticalMethod · 0.80

Calls 2

CallerLoggerClass · 0.85
getMethod · 0.65

Tested by

no test coverage detected