doggo/pkg/utils/logger.go

14 lines
274 B
Go
Raw Normal View History

package utils
import "github.com/sirupsen/logrus"
// InitLogger initializes logger.
func InitLogger() *logrus.Logger {
logger := logrus.New()
logger.SetFormatter(&logrus.TextFormatter{
FullTimestamp: true,
DisableLevelTruncation: true,
})
return logger
}