Skip to content

docs: add logging best practices for plugin authors - #6833

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
elithrar:docs/plugin-logging
Jan 4, 2026
Merged

docs: add logging best practices for plugin authors#6833
rekram1-node merged 1 commit into
anomalyco:devfrom
elithrar:docs/plugin-logging

Conversation

@elithrar

@elithrarelithrar commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

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
@rekram1-node
rekram1-node merged commit 8aa56dc into anomalyco:devJan 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
- fixesanomalyco#6830anomalyco#6833
triklozoid pushed a commit to triklozoid/opencode that referenced this pull request Feb 2, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
Sign up for freeto 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

@elithrar@rekram1-node