MCPcopy
hub / github.com/celery/celery / get_logger

Function get_logger

celery/utils/log.py:97–102  ·  view source on GitHub ↗

Get logger by name.

(name)

Source from the content-addressed store, hash-verified

95
96
97def get_logger(name):
98 """Get logger by name."""
99 l = _get_logger(name)
100 if logging.root not in (l, l.parent) and l is not base_logger:
101 l = _using_logger_parent(base_logger, l)
102 return l
103
104
105task_logger = get_logger('celery.task')

Callers 15

teardownFunction · 0.90
setup_methodMethod · 0.90
test_get_logger_rootMethod · 0.90
setup_methodMethod · 0.90
functional.pyFile · 0.90
signal.pyFile · 0.90
beat.pyFile · 0.90
worker.pyFile · 0.90
pidbox.pyFile · 0.90
control.pyFile · 0.90
loops.pyFile · 0.90

Calls 1

_using_logger_parentFunction · 0.85

Tested by 5

teardownFunction · 0.72
setup_methodMethod · 0.72
test_get_logger_rootMethod · 0.72
setup_methodMethod · 0.72