跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Android] 大佬们是如何记录日志的

发表于

因为就职的是 To B 的公司,相比运行性能或者隐私泄露,有问题无法定位的严重程度会更高

目前用的日志库是公司自己实现的,其中时不时会发现些问题,想着不如换成第三方库更加稳定。最近研究了下使用的比较多的日志库,想看看 V 站的大佬们有没有实际使用过的经验。

日志库 优点 缺点
Logger 1. 自带多种对象格式化方案
2. 自带文件滚动存储
1. 已经三年没有更新
2. 为了日志输出美观增加了日志文件的大小
mars 1. 腾讯出品,不少自家产品都在使用,稳定性有保障
2. 自带加密算法实现
1. 使用 C++实现,出现问题时难以排查
timber 1.轻量小巧 1. 写文件需要自行实现
2. 使用习惯和 android log 不一致

或者还有其他日志库也可以给我推荐推荐,我再研究下。谢谢各位大佬。

Featured Replies

没有可显示的帖子

创建帐户或登录来提出意见

Account

导航

搜索

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.