func NewDefaultLogger(level string) Logger {
	var zerologLevel zerolog.Level
	switch level {
	case levelInfo:
		zerologLevel = zerolog.InfoLevel
	case levelWarn:
		zerologLevel = zerolog.WarnLevel
	case levelError:
		zerologLevel = zerolog.ErrorLevel
	}
	l := zerolog.New(zerolog.ConsoleWriter{Out: os.Stdout, TimeFormat: time.RFC3339}).Level(zerologLevel).With().Timestamp().Logger()
	return &defaultLogger{logger: l}
}
NewDefaultLogger creates new default logger.
package log
import (
	"github.com/rs/zerolog"
	"os"
	"time"
)
const (
	levelInfo  = "info"
	levelWarn  = "warn"
	levelError = "error"
)
type defaultLogger struct {
	logger zerolog.Logger
}