From f9d68d688d6e2418868b0a0fa1c1e4b8e9bfe0e3 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Wed, 31 May 2017 14:55:31 +0000 Subject: [PATCH] add tcp logging section to debug doc --- _docs/debug.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_docs/debug.md b/_docs/debug.md index 03a4156..8babc8d 100644 --- a/_docs/debug.md +++ b/_docs/debug.md @@ -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 +```