Nate
10/27/2025, 4:41 PMNate
10/27/2025, 4:45 PM@task(log_prints=True) or simply set PREFECT_LOGGING_LOG_PRINTS=1 then `print`s in the scope of that task/flow (as long as child flows/tasks don't opt out with log_prints=False) will be captured and sent to the API as INFO records (we probably should not have made print_as_log public, to avoid this potential confusion)
https://docs.prefect.io/v3/how-to-guides/workflows/add-logging#log-with-print-statementsVincent D. Warmerdam
10/28/2025, 2:59 PM