Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android版本logan默认信息记录 #519

Open
MIyulong opened this issue Jun 27, 2024 · 1 comment
Open

android版本logan默认信息记录 #519

MIyulong opened this issue Jun 27, 2024 · 1 comment

Comments

@MIyulong
Copy link

MIyulong commented Jun 27, 2024

现状
android版本日志的记录,第一句是
{"c":"clogan header","f":1,"l":1719395375990,"n":"clogan","i":1,"m":true}
需求
每个日志的开头记录app版本,及设备信息,主要用来协助相关日志的分析。

APP BundleId: com.xxx.xxx,
APP Version: xxx, 
APP语言: xxx,
手机型号: xxx
系统版本: xxx
首次运行时间:2024-05-12 09:36:48 +0000

问题

  1. 未找到相关api进行设置
  2. 测试了在Logan.init(config)后手动插入上述默认信息,但app重启后打开又会再次写入同样信息;
@Richard-Cao
Copy link
Member

你这个信息可以放在日志上传的请求的请求头里,然后后台识别出来,日志里写的话确实是每次都会写,得自己本地判断如果写过了就不写了,这个信息不好通用设置,所以就没做这个api设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants