mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add tcp logging section to debug doc
This commit is contained in:
@@ -22,3 +22,16 @@ example output:
|
||||
15:06:43.883 ▶ INFO 008 collector started for container: 7120f83ca...
|
||||
...
|
||||
```
|
||||
|
||||
## TCP Logging Socket
|
||||
|
||||
In lieu of using a local unix socket, TCP logging can be enabled via the `CTOP_DEBUG_TCP` environment variable:
|
||||
|
||||
```bash
|
||||
CTOP_DEBUG=1 CTOP_DEBUG_TCP=1 ./ctop
|
||||
```
|
||||
|
||||
Messages can be followed by connecting to the default listen address:
|
||||
```bash
|
||||
curl -s localhost:9000
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user