func (dl *DefaultLogger) Warningf(ctx context.Context, s string, args ...interface{}) {
	dl.log.Infof(s, args...)
}
Warningf is used for logging at info level.
package log
import (
	"context"
	"os"
	"strings"
	"github.com/sirupsen/logrus"
)
const (
	logLevelEnv  string = "WFL_LOGLEVEL"
	debugLevel   string = "DEBUG"
	infoLevel    string = "INFO"
	warningLevel string = "WARNING"
	errorLevel   string = "ERROR"
	noneLevel    string = "NONE"
)
type Logger interface {
	Begin(ctx context.Context, f string)
	Infof(ctx context.Context, s string, args ...interface{})
	Warningf(ctx context.Context, s string, args ...interface{})
	Errorf(ctx context.Context, s string, args ...interface{})
}
type DefaultLogger struct {
	log *logrus.Logger
}
func getDefaultLoggerLevel() logrus.Level {
	switch strings.ToUpper(os.Getenv(logLevelEnv)) {
	case debugLevel:
		return logrus.DebugLevel
	case infoLevel:
		return logrus.InfoLevel
	case warningLevel:
		return logrus.WarnLevel
	case errorLevel:
		return logrus.ErrorLevel
	case noneLevel:
		return logrus.PanicLevel
	}
	return logrus.ErrorLevel
}
func NewDefaultLogger() *DefaultLogger {
	l := logrus.New()
	l.Out = os.Stdout
	l.Formatter = &logrus.TextFormatter{
		FullTimestamp: true,
	}
	l.SetLevel(getDefaultLoggerLevel())
	return &DefaultLogger{
		log: l,
	}
}
func (dl *DefaultLogger) Infof(ctx context.Context, s string, args ...interface{}) {
	dl.log.Infof(s, args...)
}