From af9b527604714aca3a63671977ccaac982ccae1c Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 30 Jun 2018 13:51:31 +0300 Subject: - support logging for docker --- cmd/rr/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/rr') diff --git a/cmd/rr/main.go b/cmd/rr/main.go index 4ab2fbe2..03bef9bd 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -34,12 +34,15 @@ import ( "github.com/spiral/roadrunner/cmd/rr/debug" _ "github.com/spiral/roadrunner/cmd/rr/http" + "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) var debugMode bool func main() { + // forcing text based logging + rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true} // provides ability to make local connection to services rr.Container.Register(rpc.ID, &rpc.Service{}) -- cgit v1.2.3