https://prefect.io logo
Title
l

Luca Schneider

11/23/2022, 4:29 PM
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

Ryan Peden

11/23/2022, 4:33 PM
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

Luca Schneider

11/23/2022, 4:37 PM
ok thanks
r

Ryan Peden

11/23/2022, 4:41 PM
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

Luca Schneider

11/23/2022, 4:43 PM
If i use
KubernetesJob
, I just need to pass this env var to the container. No need to adjust the agent ? right ?
r

Ryan Peden

11/23/2022, 4:44 PM
Right 😄