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
+21-27Lines changed: 21 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# devlog
2
2
3
-
A lightweight, embeddable development dashboard for Go applications. Monitor logs, HTTP requests, and SQL queries all in one place with minimal setup.
3
+
A lightweight, embeddable development dashboard for Go applications. Monitor logs, HTTP requests (client and server), and SQL queries all in one place with minimal setup.
4
4
5
5

6
6
@@ -9,12 +9,16 @@ A lightweight, embeddable development dashboard for Go applications. Monitor log
9
9
-**Logs**: Capture and browse structured logs with filtering and detail view
10
10
-**HTTP Client**: Monitor outgoing HTTP requests with timing, headers, and response info
11
11
-**HTTP Server**: Track incoming HTTP requests to your application
12
-
-**SQL**: Record database queries with timing and parameter information
13
-
-**Low Overhead**: Designed to be lightweight enough for production use
12
+
-**Low Overhead**: Designed to be lightweight to run in development and testing setups
14
13
-**Easy to Integrate**: Embeds into your application with minimal configuration
15
-
-**Auto-refresh**: All panels auto-refresh to show the latest data
14
+
-**Realtime**: See events as they occur
16
15
-**Clean UI**: Modern, minimalist interface with responsive design
17
16
17
+
## Note
18
+
19
+
Make sure to not activate `devlog` in production systems! It can expose sensible data like API tokens and other secret data in requests and responses.
20
+
We currently do not have any protection of the dashboard handler routes in place.
21
+
18
22
## Installation
19
23
20
24
```bash
@@ -50,7 +54,10 @@ func main() {
50
54
51
55
// 3. Create a mux and mount the dashboard
52
56
mux:= http.NewServeMux()
53
-
mux.Handle("/_devlog/", dlog.DashboardHandler())
57
+
58
+
// Mount under path prefix /_devlog, so we handle the dashboard handler under this path
59
+
// Strip the prefix, so dashboard routes match and inform it about the path prefix to render correct URLs
0 commit comments