public-ip-tracker/tracker/logger/logger.go
Melora Hugues 51bc7cb3a0
All checks were successful
continuous-integration/drone/push Build is passing
Use logrus to handle logs
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.
2023-02-04 18:15:22 +01:00

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)
}