Julio Venegas
03/15/2021, 8:00 PMadls_utils
, I'm using a logging.conf
file that gets read in the main module dataproject.py
. The flow is adls_create_day_dirs.py
. I start the local agent with the local_agent_start.txt
to set environment variables, i.e. that's where I set PREFECT__LOGGING__EXTRA_LOGGER
. @Jim Crist-Harif saw you've helped other people with this topic before, hence the mention but feel free to leave it for the community to answer :)Kyle Moon-Wright
03/15/2021, 8:26 PMJulio Venegas
03/15/2021, 8:35 PMdataproject.py
has a class that will be used beyond Prefect flows, so it has it's own logging in place using the logging
module from the standard library. The flow adls_create_day_dirs.py
imports from dataproject
but the UI won't show any of the info level logs defined in dataproject
😞 I'd like to avoid code duplication if possible, otherwise I guess I can set task level logs.Kyle Moon-Wright
03/15/2021, 9:21 PMlog_stdout=True
for each task (in your case init, setup, cleanup) to propagate those logs to the UI. I’ll need to get more information on this and get back to you!Kyle Moon-Wright
03/15/2021, 11:01 PMlogging.conf
settings to narrow the issue and rule out nested logs. If things still aren’t functioning, let us know and we’ll get you sorted.Julio Venegas
03/16/2021, 10:49 AMPREFECT__LOGGING__EXTRA_LOGGER="['adls_utils']"
EXTRA_LOGGER instead of EXTRA_LOGGER*S*. But logs are working now 🙂 Still kinda of afraid that I have no proper understanding of the logging functionality for Prefect but I'm still quite new to the project. Thanks a lot for the help and being so responsive!Kyle Moon-Wright
03/16/2021, 3:31 PM