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
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,26 @@ models:
59
59
* _Note: Windows currently untested._
60
60
1. Run the binary with `llama-swap --config path/to/config.yaml`
61
61
62
+
## Monitoring Logs
63
+
64
+
The `/logs` endpoint is available to monitor what llama-swap is doing. It will send the last 10KB of logs. Useful for monitoring the output of llama-server. It also supports streaming of logs.
65
+
66
+
Usage:
67
+
68
+
```
69
+
# basic, sends up to the last 10KB of logs
70
+
curl http://host/logs'
71
+
72
+
# add `stream` to stream new logs as they come in
73
+
curl -Ns 'http://host/logs?stream'
74
+
75
+
# add `skip` to skip history (only useful if used with stream)
76
+
curl -Ns 'http://host/logs?stream&skip'
77
+
78
+
# will output nothing :)
79
+
curl -Ns 'http://host/logs?skip'
80
+
```
81
+
62
82
## Systemd Unit Files
63
83
64
84
Use this unit file to start llama-swap on boot. This is only tested on Ubuntu.
0 commit comments