What I really liked about Prefect 1.0 was the `log...
# ask-community
m
What I really liked about Prefect 1.0 was the
log_to_stdout
Parameter which automatically logs all print statements. Is there something similar for Prefect 2?
1
a
no, not at the moment you need to use logger - in the end it's one line
Copy code
logger = get_run_logger()
j
This does require refactoring all
print()
statements to
<http://logger.info|logger.info>()
, doesn't it?
One of the most appealing feature of Prefect is that I don't have to refactor existing code to work with Prefect, and that I can run the code locally without involving Prefect at all. I would love to see
log_stdout
feature back in Prefect 2.
a
I agree, I'm gonna put this into our product backlog for prioritization and talk internally how/when we can address it - thanks for reminding about this, definitely very important
🙌 1
❤️ 1