Merge 32118f0c4423f929d7538157d9370a5f4a065f18 into b1885a643b4977c9089d77eb07c0fd96591f94b8

This commit is contained in:
Geoff Baskwill 2017-09-18 12:00:10 +00:00 committed by GitHub
commit d2bb51374a

View File

@ -18,6 +18,11 @@ var (
numericPlaceHolderRegexp = regexp.MustCompile(`\$\d+`) numericPlaceHolderRegexp = regexp.MustCompile(`\$\d+`)
) )
// SetDefaultLogger replaces the default Logger instance.
func SetDefaultLogger(l Logger) {
defaultLogger = l
}
func isPrintable(s string) bool { func isPrintable(s string) bool {
for _, r := range s { for _, r := range s {
if !unicode.IsPrint(r) { if !unicode.IsPrint(r) {