https://github.com/Delgan/loguru
It's used inside of a task. When I run the flow locally, I see the loguru output but when it runs remotely (ECS), I don't see the logs in Prefect Cloud. How could I get it to write to the Prefect logs?
Also, how should I set up my ECS flow to get it to write the container logs to cloudwatch?
Thanks!
k
Kevin Kho
12/14/2021, 3:47 PM
Hey @Pedro Machado, add the extra loggers here to Prefect for the logs to show up. This will not work for Dask executor.
Kevin Kho
12/14/2021, 3:47 PM
For logs to cloud watch, you need to configure it like this:
There is a loguru thread somewhere up here I think in case you are curious
Kevin Kho
12/14/2021, 3:51 PM
Ah I guess it’s gone
p
Pedro Machado
12/14/2021, 5:17 PM
Thanks Kevin. I think I a missing something. I tried this env var on the ECSRun and got the snowflake connector to log but not my custom library. I am thinking I need to do something on the loguru side. Any ideas?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.