You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure file logs always capture DEBUG and document file logging/rotation
- Set root logger to DEBUG when file logging is enabled so log files record full details
- Clarify console vs file logging in README
- Document BRAIN_LOG_FILE behavior: automatic rotation (10MB per file, 5 backups), always captures DEBUG, and provide example path
brain --debug <command># Full diagnostics with LLM details
133
133
```
134
134
135
-
> **Logs:** By default, logs are suppressed during operations to avoid interrupting spinners. Use `--verbose` or `--debug` for detailed information with beautiful Rich formatting.
135
+
> **Console Logs:** By default, logs are suppressed during operations to avoid interrupting spinners. Use `--verbose` or `--debug` for detailed information with beautiful Rich formatting.
136
+
137
+
> **File Logs:** Optional. Set `BRAIN_LOG_FILE` in `.env` to enable persistent logging with automatic rotation (max 10MB per file, 5 backups). File logs always capture full DEBUG details regardless of console log level.
136
138
137
139
> **Cost Tracking:** All Azure OpenAI usage is automatically tracked in a local SQLite database (`~/.brain/costs.db`). Data stays private and grows ~10-50 MB/year for typical use.
138
140
@@ -160,10 +162,13 @@ Create `~/.config/brain/.env` with these settings:
160
162
-`AZURE_SEARCH_API_KEY` - Azure AI Search API key
161
163
-`AZURE_SEARCH_INDEX_NAME` - Search index name (default: second-brain-notes)
0 commit comments