Does anyone have examples or best practices on how...
# flyte-support
a
Does anyone have examples or best practices on how to use the stats & logging properties of flytekit.current_context()? (or alternatives) I just see TODOs in the doc at https://docs.flyte.org/projects/flytekit/en/latest/generated/flytekit.ExecutionParameters.html#flytekit.ExecutionParameters.logging
t
flytekit.current_context().logging
should give a logging handler that you can use to log within a Flyte task. @thankful-minister-83577 / @high-accountant-32689, would one of you be able to add examples to the API docs?
a
and
flytekit.current_context().stats
155 Views