// NewDevelopmentLogger returns a configured logger for development.
// It outputs debug level and above logs, and sampling is disabled.
NewDevelopmentLogger returns a configured logger for development.
It outputs debug level and above logs, and sampling is disabled.
// NewDevelopmentLogger returns a configured logger for development . // It outputs debug level and above logs and sampling is disabled .
func NewDevelopmentLogger() *Logger {
	logLevel := zerolog.DebugLevel
	zerolog.SetGlobalLevel(logLevel)
	zerolog.LevelFieldName = "severity"
	zerolog.LevelFieldMarshalFunc = func(l zerolog.Level) string {
		return logLevelSeverity[l]
	}
	zerolog.TimestampFieldName = "time"
	zerolog.TimeFieldFormat = time.RFC3339Nano
	logger := zerolog.New(os.Stderr).With().Timestamp().Logger()
	return &Logger{&logger}
}
func NewDevelopmentLogger ( ) * Logger { logLevel := zerolog . DebugLevel zerolog . SetGlobalLevel ( logLevel ) zerolog . LevelFieldName = " " zerolog . LevelFieldMarshalFunc = func ( l zerolog . Level ) string { return logLevelSeverity [ l ] } zerolog . TimestampFieldName = " " zerolog . TimeFieldFormat = time . RFC3339Nano logger := zerolog . New ( os . Stderr ) . With ( ) . Timestamp ( ) . Logger ( ) return & Logger { & logger } }
NewDevelopmentLogger returns a configured logger for development.
NewDevelopmentLogger returns a configured logger for development .