Hi all, How can I export the logs for a flow to a ...
# ask-community
r
Hi all, How can I export the logs for a flow to a file?
f
Hey @Robert Esteves if you're running your flow from a CLI you could pipe output to a file from terminal typically like other programs run.
python some_flow.py 2> log_output.txt
There's also some additional loggers you can set and create env vars to interact with them. Check this out: https://discourse.prefect.io/t/how-to-add-extra-loggers-to-prefect-2-0/1040