[Docs] Document logging inside Python tasks running on a remote cluster #4830
Labels
backlogged
For internal use. Reserved for contributor team workflow.
documentation
Improvements or additions to documentation
hacktoberfest
question
Further information is requested
Description
Question from Slack:
Response:
In order to do this, you need to use the flytekit logger and set the level to 20. To do this in ImageSpec (or add to Dockerfile):
To log, import logger from flytekit and call in the task, making sure to set up the env variable:
https://github.com/flyteorg/flytekit/blob/f721eef474bb04ec2df581a690fb703e7c2b7956/flytekit/deck/deck.py#L6
https://github.com/flyteorg/flytekit/blob/f721eef474bb04ec2df581a690fb703e7c2b7956/flytekit/deck/deck.py#L149
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: