From a0dea8c09d9e3b791daf71afe0f83c392844cd4d Mon Sep 17 00:00:00 2001 From: suin Date: Wed, 6 Aug 2014 12:09:02 +0900 Subject: [PATCH] fix typo in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3a6aced..bfadf2c 100644 --- a/README.md +++ b/README.md @@ -77,17 +77,17 @@ import ( func init() { // Log as JSON instead of the default ASCII formatter. - log.SetFormatter(logrus.JSONFormatter) + log.SetFormatter(&log.JSONFormatter{}) // Use the Airbrake hook to report errors that have Error severity or above to // an exception tracker. You can create custom hooks, see the Hooks section. log.AddHook(logrus_airbrake.AirbrakeHook) // Output to stderr instead of stdout, could also be a file. - log.SetOuput(os.Stderr) + log.SetOutput(os.Stderr) // Only log the warning severity or above. - log.SetLevel(logrus.WarnLevel) + log.SetLevel(log.WarnLevel) } func main() {