How to get log information in android

2019-07-20 12:44发布

How to get log information to remote server while app running on device. Like how we get in log of java file using log4j?

5条回答
我想做一个坏孩纸
2楼-- · 2019-07-20 13:13

There is a service developed just for it (our company just released it): http://apphance.com. It is not only for reporting crashes, but also for reporting logs of your application running on remote devices. It is a service, so you do not need to have a server of your own - you just integrate a .jar file (less than 5 minutes - we timed it). And you immediately start getting the logs which you can look at in the web panel of ours. These are:

  • logs from standard logging
  • changes in conditions of the device (rotation, wifi/gprs etc.)
  • crashes
  • memory warning
  • your testers can also report issues directly from the device including screenshots (yay!)

Disclaimer: I am CTO of Polidea, company behind apphance.

查看更多
孤傲高冷的网名
3楼-- · 2019-07-20 13:13

Download Log Collecter from android market that app is useful to u

查看更多
够拽才男人
4楼-- · 2019-07-20 13:14

There is a new project, which enables log4j on android. Using lo4gj over slf4j is possible. It also provides an appender for LogCat. See project android-logging-log4j or log4j support in android

查看更多
走好不送
5楼-- · 2019-07-20 13:16

for getting crash reports of app use following link

http://code.google.com/p/acra/wiki/ACRA3HowTo?tm=6

查看更多
聊天终结者
6楼-- · 2019-07-20 13:33

@parag et al, Log Collector doesn't send the log (actually, open email chooser for you) in android 2.3.

查看更多
登录 后发表回答