为什么要在Android中编写自定义记录器

时间:2019-02-18 12:48:16

标签: android

几次,每个Android项目都是从编写自定义记录器开始的。我们为什么需要它? Android SDK附带的基本记录器不好吗?

2 个答案:

答案 0 :(得分:1)

默认记录器(Log)不错。但是在某些情况下,例如,您需要将日志发送到服务器中,或者使用Crashlytics而不是Log.*(...) Debug Production 日志分开发送

答案 1 :(得分:0)

您不需要自定义记录器。 users | | |--'userUID' | | | |--<posts> | | | | | |--'postUID' | | | | | | | --create_time(timestamp), | | | name, body, tags, PV, review,etc... | | | | | |--'postUID2' | | | |--<followers> | | |--'userUID' | | |--'userUID2' | | |--'userUID' | 可以正常用于标准目的。