diff options
| author | adamdottv <[email protected]> | 2025-07-09 10:00:03 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-07-09 10:00:03 -0500 |
| commit | 53f8e7850e235f484784d787a216b88c573dd5cd (patch) | |
| tree | e3b23b6ad69fa092ac72db49eec3ec2654731bfd /packages/web/src/content/docs | |
| parent | ca8ce88354fa2f8e7cc8f0a911197a2550ebc269 (diff) | |
| download | opencode-53f8e7850e235f484784d787a216b88c573dd5cd.tar.gz opencode-53f8e7850e235f484784d787a216b88c573dd5cd.zip | |
feat: configurable log levels
Diffstat (limited to 'packages/web/src/content/docs')
| -rw-r--r-- | packages/web/src/content/docs/docs/config.mdx | 22 |
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. |
