docs(README): adjust heading levels in logging section
Promote "Logging" to H2 and change subheadings from H1 to H3 for improved Markdown structure and hierarchy.
This commit is contained in:
parent
0c8ec610b8
commit
7055a23ca2
@ -116,18 +116,18 @@ Grokkit is designed to work seamlessly with Git, using version control instead o
|
|||||||
[Read the Safety & Change Management Guide](docs/user-guide/safety.md)
|
[Read the Safety & Change Management Guide](docs/user-guide/safety.md)
|
||||||
|
|
||||||
|
|
||||||
### Logging
|
## Logging
|
||||||
|
|
||||||
Logs are written to `~/.config/grokkit/grokkit.log` in JSON format.
|
Logs are written to `~/.config/grokkit/grokkit.log` in JSON format.
|
||||||
|
|
||||||
|
|
||||||
# View logs in real-time
|
### View logs in real-time
|
||||||
`tail -f ~/.config/grokkit/grokkit.log`
|
`tail -f ~/.config/grokkit/grokkit.log`
|
||||||
|
|
||||||
# Find errors
|
### Find errors
|
||||||
`cat ~/.config/grokkit/grokkit.log | jq 'select(.level=="ERROR")'`
|
`cat ~/.config/grokkit/grokkit.log | jq 'select(.level=="ERROR")'`
|
||||||
|
|
||||||
# Track API performance
|
### Track API performance
|
||||||
`cat ~/.config/grokkit/grokkit.log | jq 'select(.msg=="API request completed") | {model, duration_ms, response_length}'`
|
`cat ~/.config/grokkit/grokkit.log | jq 'select(.msg=="API request completed") | {model, duration_ms, response_length}'`
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user