Alibaba Cloud Log Service SDKs are implemented based on Overview and currently provide the log writing function.

GitHub: aliyun-log-ios-sdk.


    Use the endpoint, AccessKey ID, and AccessKey Secret to build the Log Service client.
    @endPoint: For more information, see AccessKey pair.
    @AccessKey ID, and AccessKey Secret: For more information, see Endpoints. 

let myClient = try! LOGClient(endPoint: "",
                              accessKeyID: "",
                              accessKeySecret: "",
/* Create a log group. */
Let loggroup = try! Loggroup (topic: "mtopic", source: "msource ")
      /* Store a log. */
    let log1 = Log()
          try! log1. PutContent("K11", value: "V11")
         try! log1. PutContent("K12", value: "V12")
         try! log1. PutContent("K13", value: "V13")
   /* Store a log. */
    Let log2 = Log ()
          try! log2. Putcontent ("k21", value: "V21 ")
         try! log2. PutContent("K22", value: "V22")
         try! log2. PutContent("K22", value: "V22")
  /* Send the log. */
 myClient.PostLog(logGroup,logStoreName: ""){ response, error in
        // handle response however you want
        if error?.domain == NSURLErrorDomain && error?.code == NSURLErrorTimedOut {
            print("timed out") // note, `response` is likely `nil` if it timed out


See GitHub: AliyunLogObjc.