Hi all, regarding `PREFECT_LOGGING_EXTRA_LOGGERS` ...
# prefect-community
l
Hi all, regarding
PREFECT_LOGGING_EXTRA_LOGGERS
Has it to be set in the flow, on the agent or on the orion server ? Thanks
1
r
It depends on where you want to use the extra loggers. You'll usually want it set it in your flow run environment - which will be the same as the agent environment if you are running flows in processes. But if you use flow runner infrastructure that runs flows in containers (such as
DockerContainer
,
KubernetesJob
, and
ECSTask
) you'll want to set
PREFECT_LOGGING_EXTRA_LOGGERS
in the container.
l
ok thanks
r
I updated the comment a bit to make it more accurate. The flow environment is typically where you want to add the extra loggers, but where you set the extra loggers depends on how you are running your flows.
l
If i use
KubernetesJob
, I just need to pass this env var to the container. No need to adjust the agent ? right ?
r
Right 😄