code: func (p *Plugin) logLevelHandler(formatter *render.Render) http.HandlerFunc {
  	return func(w http.ResponseWriter, req *http.Request) {
  		p.Log.Infof("Path: %s", req.URL.Path)
  
  		vars := mux.Vars(req)
  		if vars == nil {
  			formatter.JSON(w, http.StatusNotFound, struct{}{})
  			return
  		}
  		err := p.setLoggerLogLevel(vars[loggerVarName], vars[levelVarName])
  		if err != nil {
  			formatter.JSON(w, http.StatusNotFound,
  				struct{ Error string }{err.Error()})
  			return
  		}
  
  		formatter.JSON(w, http.StatusOK, LoggerData{
  			Logger: vars[loggerVarName],
  			Level:  vars[levelVarName],
  		})
  	}
  }
docs: // logLevelHandler processes requests to set log level on loggers in a plugin