juana
08/16/2025, 7:09 AMlog_prints=True
. Sometimes i pass the logger into the function.
from prefect import flow, task
from prefect.logging import get_run_logger
@task(log_prints=True)
def task_one():
logger = get_run_logger()
step_one()
step_two()
def step_one():
print("Hello")
def step_two():
print("World")
Nate
08/16/2025, 5:33 PMprint
and log_prints is also valid. what problems/friction are you encountering with your current strategy?