Skip to content

ctx.log

Logs a message to the Forge dashboard

ts
await ctx.log("Hello World!")
python
# the python SDK requires you to import ctx differently for pages vs actions
from forgeapp_sdk import ctx_var, action_ctx_var

# ctx = action_ctx_var.get() for actions
ctx = ctx_var.get()

await ctx.log("Hello World!")

example of Forge app with context.log