summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-07-09 10:00:03 -0500
committeradamdottv <[email protected]>2025-07-09 10:00:03 -0500
commit53f8e7850e235f484784d787a216b88c573dd5cd (patch)
treee3b23b6ad69fa092ac72db49eec3ec2654731bfd /packages/web/src
parentca8ce88354fa2f8e7cc8f0a911197a2550ebc269 (diff)
downloadopencode-53f8e7850e235f484784d787a216b88c573dd5cd.tar.gz
opencode-53f8e7850e235f484784d787a216b88c573dd5cd.zip
feat: configurable log levels
Diffstat (limited to 'packages/web/src')
-rw-r--r--packages/web/src/content/docs/docs/config.mdx22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx
index 40583ea0a..78552d415 100644
--- a/packages/web/src/content/docs/docs/config.mdx
+++ b/packages/web/src/content/docs/docs/config.mdx
@@ -93,6 +93,28 @@ You can configure MCP servers you want to use through the `mcp` option.
---
+### Logging
+
+You can configure the minimum log level through the `log_level` option. This controls which log messages are written to the log files.
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "log_level": "INFO"
+}
+```
+
+Available log levels are:
+
+- `DEBUG` - All messages including debug information
+- `INFO` - Informational messages and above (default)
+- `WARN` - Warnings and errors only
+- `ERROR` - Errors only
+
+The default log level is `INFO` in production and `DEBUG` in development mode.
+
+---
+
### Disabled providers
You can disable providers that are loaded automatically through the `disabled_providers` option. This is useful when you want to prevent certain providers from being loaded even if their credentials are available.