cutego/internal/utils/logger.go
Christian Muehlhaeuser 15de9210c4
Replace import path 'Sirupsen/logrus' with 'sirupsen/logrus'
Use the canonical project URL (note the lowercase 's') for logrus to
prevent duplicate checkouts & imports of logrus.
2017-09-04 23:45:19 +02:00

19 lines
204 B
Go

package utils
import (
"os"
"github.com/sirupsen/logrus"
)
var Log = logrus.New()
func init() {
Log.Out = os.Stderr
Log.Level = logrus.InfoLevel
}
func Debug() {
Log.Level = logrus.DebugLevel
}