|
@@ -11,7 +11,7 @@ var Log *logrus.Entry
|
|
|
func initLog(name string, level string) error {
|
|
|
if Log == nil {
|
|
|
// Log as JSON instead of the default ASCII formatter.
|
|
|
- logrus.SetFormatter(&logrus.TextFormatter{})
|
|
|
+ logrus.SetFormatter(&logrus.JSONFormatter{})
|
|
|
|
|
|
// Output to stderr instead of stdout, could also be a file.
|
|
|
// logrus.SetOutput(os.Stderr)
|