func (s Sugar) Panicf(format string, args ...interface{}) {
	s.Logf(Panic, format, args...)
}
Panicf is a convenience method equivalent to `Logf(PanicLevel, args...)`
package logr
import (
	"fmt"
)
type Sugar struct {
	logger Logger
}
func (s Sugar) sugarLog(lvl Level, msg string, args ...interface{}) {
	if s.logger.IsLevelEnabled(lvl) {
		fields := make([]Field, 0, len(args))
		for _, arg := range args {
			fields = append(fields, Any("", arg))
		}
		s.logger.Log(lvl, msg, fields...)
	}
}
func (s Sugar) Trace(msg string, args ...interface{}) {
	s.sugarLog(Trace, msg, args...)
}
func (s Sugar) Debug(msg string, args ...interface{}) {
	s.sugarLog(Debug, msg, args...)
}
func (s Sugar) Print(msg string, args ...interface{}) {
	s.Info(msg, args...)
}
func (s Sugar) Info(msg string, args ...interface{}) {
	s.sugarLog(Info, msg, args...)
}
func (s Sugar) Warn(msg string, args ...interface{}) {
	s.sugarLog(Warn, msg, args...)
}
func (s Sugar) Error(msg string, args ...interface{}) {
	s.sugarLog(Error, msg, args...)
}
func (s Sugar) Fatal(msg string, args ...interface{}) {
	s.sugarLog(Fatal, msg, args...)
}
func (s Sugar) Panic(msg string, args ...interface{}) {
	s.sugarLog(Panic, msg, args...)
}
func (s Sugar) Logf(lvl Level, format string, args ...interface{}) {
	if s.logger.IsLevelEnabled(lvl) {
		var msg string
		if format == "" {
			msg = fmt.Sprint(args...)
		} else {
			msg = fmt.Sprintf(format, args...)
		}
		s.logger.Log(lvl, msg)
	}
}
func (s Sugar) Tracef(format string, args ...interface{}) {
	s.Logf(Trace, format, args...)
}
func (s Sugar) Debugf(format string, args ...interface{}) {
	s.Logf(Debug, format, args...)
}
func (s Sugar) Infof(format string, args ...interface{}) {
	s.Logf(Info, format, args...)
}
func (s Sugar) Printf(format string, args ...interface{}) {
	s.Infof(format, args...)
}
func (s Sugar) Warnf(format string, args ...interface{}) {
	s.Logf(Warn, format, args...)
}
func (s Sugar) Errorf(format string, args ...interface{}) {
	s.Logf(Error, format, args...)
}
func (s Sugar) Fatalf(format string, args ...interface{}) {
	s.Logf(Fatal, format, args...)
}