Melora Hugues
51bc7cb3a0
All checks were successful
continuous-integration/drone/push Build is passing
This commit adds the logrus module, and improves logs handling for the entire program. Error logs are better displayed, and the log level can be set from the configuration file.
10 lines
146 B
Go
10 lines
146 B
Go
package logger
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
var L logrus.Logger
|
|
|
|
func Init(level logrus.Level) {
|
|
L = *logrus.New()
|
|
L.SetLevel(level)
|
|
}
|