Barmaley
Barmaley

Reputation: 16363

How to turn off or intercept Logcat logs?

Strange enough problem...

Okay, here's my situation. In my Android application I'm using 3rd party component which generates a lot of Logcat logs. I don't have sources of those component :(

For some security reason I need to find way to somehow intercept those logs before they appearing in Logcat.

Is it possible? Any ideas?

Upvotes: 1

Views: 1742

Answers (1)

Robert Rouhani
Robert Rouhani

Reputation: 14668

You can use ProGuard on the 3rd party library to strip it of all calls to the Log class as per this answer to a similar question: https://stackoverflow.com/a/2019002/1122135

If the source code is available for the library, I would recommend building your own version of the library without the debug output.

Upvotes: 1

Related Questions