```prefect.context.get What is this used for?```
# ask-community
b
Copy code
prefect.context.get  What is this used for?
a
The context in Prefect holds information about the current task and flow execution, such as when it started. The context acts kind of like a dictionary, so
.get()
was probably called to retrieve information from it.
k
Here’s an example using prefect.context.get() for logging: https://docs.prefect.io/core/advanced_tutorials/custom-logs.html#adding-your-own-logs