Is there any way to view the log messages from our own application in android?

前端 未结 2 654
说谎
说谎 2020-12-20 00:58

I have developed an Android application that performs some network activity. Inside the classes I have implemented the log messages like verbose, debug, info, warn and error

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 01:35

    Logcat has a small + button that lets you create a filter. Use the TAG you used in your app and specify it in the filter. That creates a new tab that shows only your apps messages. While you're at it, I recommend creating a filter for the AndroidRuntime tag. All your exceptions get dumped in there and you can find them very easy.

    enter image description here

    Of course you can filter these messages more by category (verbose, warn, error, ..) by using the buttons in the same bar.

提交回复
热议问题