The open source coding agent.
TypeScript
docs: fix logging example for plugin (#11989)
Tomáš Linhart0a5d5bc524d0
diff --git a/packages/web/src/content/docs/plugins.mdx b/packages/web/src/content/docs/plugins.mdxindex 394fecc406c..411b827d22c 100644--- a/packages/web/src/content/docs/plugins.mdx+++ b/packages/web/src/content/docs/plugins.mdx@@ -317,10 +317,12 @@ Use `client.app.log()` instead of `console.log` for structured logging:```ts title=".opencode/plugins/my-plugin.ts"export const MyPlugin = async ({ client }) => {await client.app.log({- service: "my-plugin",- level: "info",- message: "Plugin initialized",- extra: { foo: "bar" },+ body: {+ service: "my-plugin",+ level: "info",+ message: "Plugin initialized",+ extra: { foo: "bar" },+ },})}```