private static void appendMessage()

in invoker/core/src/main/java/com/google/cloud/functions/invoker/gcf/JsonLogHandler.java [59:67]


  private static void appendMessage(StringBuilder json, LogRecord record) {
    // This must be the last item in the JSON object, because it has no trailing comma. JSON is
    // unforgiving about commas and you can't have one just before }.
    json.append("\"message\": \"").append(escapeString(record.getMessage()));
    if (record.getThrown() != null) {
      json.append("\\n").append(escapeString(getStackTraceAsString(record.getThrown())));
    }
    json.append("\"");
  }