MCPcopy
hub / github.com/celery/celery / get_task_logger

Function get_task_logger

celery/utils/log.py:109–113  ·  view source on GitHub ↗

Get logger for task module by name.

(name)

Source from the content-addressed store, hash-verified

107
108
109def get_task_logger(name):
110 """Get logger for task module by name."""
111 if name in RESERVED_LOGGER_NAMES:
112 raise RuntimeError(f'Logger name {name!r} is reserved!')
113 return _using_logger_parent(task_logger, get_logger(name))
114
115
116def mlevel(level):

Callers 9

tasks.pyFile · 0.90
test_isaMethod · 0.90
test_recursiveMethod · 0.90
get_loggerMethod · 0.90
long_running_taskFunction · 0.90
visitors.pyFile · 0.90
tasks.pyFile · 0.90

Calls 2

_using_logger_parentFunction · 0.85
get_loggerFunction · 0.85

Tested by 5

test_isaMethod · 0.72
test_recursiveMethod · 0.72
get_loggerMethod · 0.72