Join Slack
Powered by
Hi! How to get logging messages from imported modu...
# ask-community
м
Михаил Бараковский
06/14/2023, 12:08 PM
Hi! How to get logging messages from imported modules? In version 1.0, we added the line logging = prefect.context.get("logger") to each module and then used the logging.debug lines for logging.
✅ 1
g
GOWRAV TATA
06/15/2023, 4:11 AM
In prefect 2, at each level add get_run_logger()
🙌 1
j
Jeff Hale
06/15/2023, 12:43 PM
Docs:
https://docs.prefect.io/2.10.13/concepts/logs/#logging-in-flows
м
Михаил Бараковский
06/16/2023, 6:14 AM
And how to set
PREFECT_LOGGING_EXTRA_LOGGERS
so that it would take logging from all used libraries?
Михаил Бараковский
06/16/2023, 6:15 AM
Each module is inconvenient to enter...
Open in Slack
Previous
Next