From e86319aa1d796354b7e376adcd99a39b10e37cd3 Mon Sep 17 00:00:00 2001 From: "Rebill.Ruan" Date: Tue, 2 Jun 2015 15:33:32 +0800 Subject: [PATCH] fix error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c963c7d..77e5fcb 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ init() { // do something here to set environment depending on an environment variable // or command-line flag if Environment == "production" { - log.SetFormatter(logrus.JSONFormatter) + log.SetFormatter(&logrus.JSONFormatter{}) } else { // The TextFormatter is default, you don't actually have to do this. log.SetFormatter(&log.TextFormatter{})