func LoggerWriter(w io.Writer) *zap.Logger {
	return newLogger(writeSyncer{w})
}
LoggerWriter creates a new zap.Logger that writes all messages to the given
io.Writer.
package zaptest
import (
	"io"
	"strings"
	"go.uber.org/zap"
	"go.uber.org/zap/zapcore"
)
type logger interface {
	Log(args ...interface{})
}
type testOutput struct {
	logger
}
type writeSyncer struct {
	io.Writer
}
var Config = func() zapcore.EncoderConfig {
	conf := zap.NewDevelopmentEncoderConfig()
	conf.TimeKey = ""
	return conf
}
var Level = zap.DebugLevel
func Logger(t logger) *zap.Logger {
	return newLogger(writeSyncer{testOutput{t}})
}