Latest 0.0.1
Homepage https://github.com/bing900717/AliyunLogObjc
License MIT
Platforms ios 8.0
Authors

AliyunLogObjc

Aliyun Sls Log SDK written in Objective-C

Motivation

For the official Aliyun Sls SDK is written in Swift 2.3, it’s improper for objc app to be packaged with the large Swift Core Lib and Swift Foundation Lib, about 30 Mb.

This SDK is mostly interpreted from the official one, but the quality of code has been improved compared with the unreasonable style in the original one.

Install

Carthage

github "lujiajing1126/AliyunLogObjc"

CocoaPods is not supported now

Example

#import <AliyunLogObjc/AliyunLogObjc.h> 
LogClient *client = [[LogClient alloc] initWithApp: @"endpoint" accessKeyID:@"" accessKeySecret:@"" projectName:@""];
LogGroup *logGroup = [[LogGroup alloc] initWithTopic: @"" andSource:@""];
Log *log1 = [[Log alloc] init];
[log1 PutContent: @"Value" withKey: @"Key"];
[logGroup PutLog:log1];
[client PostLog:logGroup logStoreName: @"" call:^(NSURLResponse* _Nullable response,NSError* _Nullable error) {
    if (error != nil) {
    }
}];

Acknownledge

https://github.com/aliyun/aliyun-log-ios-sdk

https://github.com/bilby91/HMACSigner

https://github.com/nicklockwood/GZIP

https://github.com/siuying/NSData-MD5

Latest podspec

{
    "name": "AliyunLogObjc_iOS",
    "version": "0.0.1",
    "summary": "AliyunLogObjc for pod usage",
    "description": "u963fu91ccu4e91logSDK for cocopods.",
    "homepage": "https://github.com/bing900717/AliyunLogObjc",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yaoxb": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bing900717/AliyunLogObjc.git",
        "tag": "0.0.1"
    },
    "source_files": "AliyunLogObjc/**/*.{h,m}",
    "platforms": {
        "ios": "8.0"
    },
    "module_name": "AliyunLogObjc"
}

Pin It on Pinterest

Share This