https://prefect.io logo
Title
a

alex

11/14/2022, 7:34 PM
Hello, what is the recommended way to expose logs from threads to the Prefect 1 Cloud UI. I have a logger setup this way
logger = logging.getLogger("mylogs")
<http://logger.info|logger.info>("msg")
+ 

PREFECT__LOGGING__EXTRA_LOGGERS="['mylogs']"
Logs from my main thread are logged but not from any additional threads I am using.
m

Mason Menges

11/14/2022, 11:07 PM
Hey @alex some of this I think can depend on how you're flows are running, this discourse article may be helpful if you're using Dask https://discourse.prefect.io/t/why-are-the-dask-logs-not-being-shown-in-the-prefect-ui/75, but also applies pretty generally.