https://prefect.io logo
#prefect-server
Title
# prefect-server
k

Kayvan Shah

05/24/2022, 10:17 AM
Is there a workaround to bind prefect logger with logger implemented in module?
1
a

Anna Geller

05/24/2022, 11:34 AM
Yes, this is what extra loggers are for. Check those resources
1.0
Copy code
export PREFECT__LOGGING__EXTRA_LOGGERS="['boto3', 'botocore']"
2.0
Copy code
export PREFECT_LOGGING_EXTRA_LOGGERS=dask,scipy
k

Kayvan Shah

05/24/2022, 12:29 PM
Will this also bind with custom libs? after pip install .
a

Anna Geller

05/24/2022, 12:39 PM
in theory this should work, yes
k

Kayvan Shah

05/24/2022, 12:40 PM
And exporting puts this setting in .prefect folder?
a

Anna Geller

05/24/2022, 1:00 PM
export only sets environment variable
t

Tyler Wanner

05/24/2022, 2:52 PM
you should be able to put something in config.toml as well, I believe, like this, if you want this setting to apply beyond the open shell (
export
only sets an environment variable, so it will only affect the active shell and any subshells launched from it)
Copy code
[logging]
extra_loggers=dask,scipy
🔝 1
🙏 1
k

Kayvan Shah

05/24/2022, 10:35 PM
Didn't see that export command Just used a workaround and set that variable for a profile Hope that works Cheers for the super quick reply
🙌 1
4 Views