code: func (f *PoliteJSONFormatter) Format(calldepth int, r *logging.Record, w io.Writer) error {
  	entry := make(map[string]interface{})
  	entry["id"] = r.Id
  	entry["level"] = r.Level
  	entry["time"] = r.Time
  	entry["module"] = r.Module
  	entry["message"] = r.Message()
  	err := json.NewEncoder(w).Encode(entry)
  	if err != nil {
  		return err
  	}
  
  	w.Write([]byte{'\n'})
  	return nil
  }
docs: // Format encodes a logging.Record in JSON and writes it to Writer.