func NewLogger(config Configuration) (Logger, error) {
	if config.Level == "" {
		config.Level = "debug"
	}

	if config.Output == nil {
		config.Output = os.Stdout
	}

	level, err := logrus.ParseLevel(config.Level)

	if err != nil {
		return nil, err
	}

	logger := logrus.New()
	logger.SetLevel(level)
	logger.Out = config.Output
	logger.Formatter = &logrus.TextFormatter{}

	return &logrusWrapper{Logger: logger}, nil
}
// NewLogger creates a new logger
NewLogger creates a new logger
// NewLogger creates a new logger
func NewLogger(config Configuration) (Logger, error) {
	if config.Level == "" {
		config.Level = "debug"
	}
	if config.Output == nil {
		config.Output = os.Stdout
	}
	level, err := logrus.ParseLevel(config.Level)
	if err != nil {
		return nil, err
	}
	logger := logrus.New()
	logger.SetLevel(level)
	logger.Out = config.Output
	logger.Formatter = &logrus.TextFormatter{}
	return &logrusWrapper{Logger: logger}, nil
}
func NewLogger ( config Configuration ) ( Logger , error ) { if config . Level == " " { config . Level = " " } if config . Output == nil { config . Output = os . Stdout } level , err := logrus . ParseLevel ( config . Level ) if err != nil { return nil , err } logger := logrus . New ( ) logger . SetLevel ( level ) logger . Out = config . Output logger . Formatter = & logrus . TextFormatter { } return & logrusWrapper { Logger : logger } , nil }
NewLogger creates a new logger
NewLogger creates a new logger