func NewLogger(w io.Writer, lvl zerolog.Level, withTimestamp bool) zerolog.Logger {
	lgr := zerolog.New(w).Level(lvl)
	if withTimestamp {
		lgr = lgr.With().Timestamp().Logger()
	}
	lgr = lgr.Hook(GCPSeverityHook{})
	return lgr
}
NewLogger is a convenience function to initialize a zerolog.Logger
package logger
import (
	"io"
	"github.com/rs/zerolog"
	"github.com/rs/zerolog/pkgerrors"
)