Giter Club home page Giter Club logo

Comments (4)

chaolee50 avatar chaolee50 commented on September 23, 2024

client 应该是全局的,现在是每次打日志都新生成一个client吗?
topic是在构造client时设置的,如果想每条日志topic不同,可以当成普通字段设置到Log里

from aliyun-log-ios-sdk.

luzsyn avatar luzsyn commented on September 23, 2024

client 应该是全局的,现在是每次打日志都新生成一个client吗?
topic是在构造client时设置的,如果想每条日志topic不同,可以当成普通字段设置到Log里

是的,每次打日志都会生成client,是为了设置不同的topic才这样做的,我也尝试把topic放在log里([log PutContent:@"topic" value:topic];)可是上传后,阿里云控制台就会多出一个__topic__0的字段;

截屏2021-01-08 上午9 57 40-tuya

from aliyun-log-ios-sdk.

chaolee50 avatar chaolee50 commented on September 23, 2024

topic换个名字呢,比如topic1 ,当成普通字段来用呢

from aliyun-log-ios-sdk.

luzsyn avatar luzsyn commented on September 23, 2024

topic换个名字呢,比如topic1 ,当成普通字段来用呢

当成普通字段就不能显示在顶部的位置了(阿里云控制台__topic__显示位置)。
我们项目里用的还是2018年用Swift语言写的那个版本,最近才发现整个框架都变了,想更新到最新版发现topic这个问题,还有其他解决方案吗?实在不行就只能手动设置topic字段了,多一个__topic__0就多一个吧......

from aliyun-log-ios-sdk.

Related Issues (20)

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.