code: func LogRequest(uri string, method string, ip string, contentType string, agent string) {
  	var output string
  	log := &LogReq{
  		URI:         uri,
  		Method:      method,
  		IP:          ip,
  		ContentType: contentType,
  		Agent:       agent,
  	}
  
  	if PushConf.Log.Format == "json" {
  		logJSON, _ := json.Marshal(log)
  
  		output = string(logJSON)
  	} else {
  		var headerColor, resetColor string
  
  		if isTerm {
  			headerColor = magenta
  			resetColor = reset
  		}
  
  		// format is string
  		output = fmt.Sprintf("|%s header %s| %s %s %s %s %s",
  			headerColor, resetColor,
  			log.Method,
  			log.URI,
  			log.IP,
  			log.ContentType,
  			log.Agent,
  		)
  	}
  
  	LogAccess.Info(output)
  }
docs: // LogRequest record http request