mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
15de9210c4
Use the canonical project URL (note the lowercase 's') for logrus to prevent duplicate checkouts & imports of logrus.
19 lines
204 B
Go
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
|
|
}
|