Skip to content

Conversation

@elithrar
Copy link
Contributor

@elithrar elithrar commented Jan 4, 2026

Adds guidance on using client.app.log() for structured logging instead of console.log

adds section on using client.app.log() instead of console.log for structured logging in plugins
@elithrar elithrar force-pushed the docs/plugin-logging branch from 250a0f3 to 1605a27 Compare January 4, 2026 14:20
@rekram1-node rekram1-node merged commit 8aa56dc into anomalyco:dev Jan 4, 2026
2 checks passed
@elithrar elithrar deleted the docs/plugin-logging branch January 4, 2026 14:54
elithrar added a commit to elithrar/opencode that referenced this pull request Jan 4, 2026
- adds log() method to ToolContext in both plugin and internal Tool.Context
- implements log() using Log.create() in tool execution contexts
- updates plugin docs to show ctx.log() for custom tools
- removes console.log example that leaks to stdout
- fixes anomalyco#6830 anomalyco#6833
elithrar added a commit to elithrar/opencode that referenced this pull request Jan 4, 2026
- adds log() method to ToolContext in both plugin and internal Tool.Context
- implements log() using Log.create() in tool execution contexts
- updates plugin docs to show ctx.log() for custom tools
- removes console.log example that leaks to stdout
- fixes anomalyco#6830 anomalyco#6833
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants