GithubHelp home page GithubHelp logo

xsflyer / aliyunlogobjc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lujiajing1126/aliyunlogobjc

0.0 2.0 0.0 50 KB

Aliyun Sls Log SDK for iOS

License: MIT License

Objective-C 92.28% Ruby 7.72%

aliyunlogobjc's Introduction

AliyunLogObjc

Aliyun Sls Log SDK written in Objective-C

This is an UNOFFICIAL SDK for Aliyun SLS, if you have questions you can just propose an issue.

这是非官方SDK,如有问题,请移步 Issues,但请务必不要滥用 Issues,提问之前,请先 阅读常见问题部分 或 搜索是否有相关的问题

Install

Carthage

github "lujiajing1126/AliyunLogObjc"

Cocoapods

pod 'AliyunSlsObjc', '~> 1.1.7'

Example

#import <AliyunLogObjc/AliyunLogObjc.h>
// Use JSON
// AliSLSProtobufSerializer - Protobuf serializer is available now
LogClient *client = [[LogClient alloc] initWithApp: @"endpoint" accessKeyID:@"" accessKeySecret:@"" projectName:@"" serializeType: AliSLSJSONSerializer];
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) {
	}
}];

常见问题

  • 由于最新版本引入了SLSprotobuf协议,编译如果找不到相应的协议文件, 请参考 Issue #17

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

aliyunlogobjc's People

Contributors

cookiezby avatar lujiajing1126 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.