Created
September 21, 2019 21:38
-
-
Save dhruvr/1654f478ec6cf22425a285fd1ddf93e9 to your computer and use it in GitHub Desktop.
Revisions
-
dhruvr created this gist
Sep 21, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ func ConfigureLogrus(output io.Writer) *logrus.Logger { logger := logrus.New() logger.SetLevel(logrus.DebugLevel) logger.SetFormatter(&logrus.TextFormatter{ DisableColors: false, FullTimestamp: true, TimestampFormat: "2006-01-02 15:04:05.000", ForceColors: true, DisableLevelTruncation: true, }) logger.SetOutput(output) return logger }