From 53f8e7850e235f484784d787a216b88c573dd5cd Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Wed, 9 Jul 2025 10:00:03 -0500 Subject: feat: configurable log levels --- packages/web/src/content/docs/docs/config.mdx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'packages/web') 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. -- cgit v1.2.3