code: func (lr loggerRewrite) Write(p []byte) (n int, err error) {
  	if !lr.hideDeprecated {
  		p = append(log_deprecated, p...)
  	}
  	n = len(p)
  	if len(p) > 0 && p[n-1] == '\n' {
  		p = p[:n-1]
  		n--
  	}
  
  	switch lr.Level {
  	case log15.LvlInfo:
  		lr.Logger.Info(string(p))
  	case log15.LvlDebug:
  		lr.Logger.Debug(string(p))
  	case log15.LvlWarn:
  		lr.Logger.Warn(string(p))
  	case log15.LvlError:
  		lr.Logger.Error(string(p))
  	case log15.LvlCrit:
  		lr.Logger.Crit(string(p))
  	}
  
  	return
  }
docs: // Implements the Write of the logger