https://prefect.io logo
Title
s

StructNode

03/20/2023, 2:22 PM
Hi everyone! When migrating from Prefect1 to Prefect2 I encountered a problem. Basically I call methods in Tasks and in those methods, I log my outputs to local .txt files. When I run the flow with Prefect1 cloud, it works perfectly fine. But when I migrated to Prefect2 cloud, It doesn't write logs to my local .txt files. I tried so many things but none of them worked. Is there any possible solutions? Thanks a lot!
🆘 1
🔴 1
s

StructNode

03/20/2023, 2:31 PM
I write my jobs log output to txt files not prefect logs
For example: I have some methods in task1.py in those methods I create some logs and I write those logs to a txt.
r

redsquare

03/20/2023, 2:34 PM
yeah this is any logger.info/error etc
s

StructNode

03/20/2023, 2:35 PM
As I mentioned I was using Prefect1 and it worked fine until I migrated to Prefect2
r

redsquare

03/20/2023, 2:37 PM
yup, its not a like for like migration