After search a lot in the stackoverflow and via google about how to intercept the logs in my application. The solution that I found is executing the command logcat -v time
in the runtime but this solution print all the logs and I just want to intercept all the calls to the Log.d/w/e methods inside my application.
Question
Is there some solution like attaching a listener to one class that report me all the logs?
For example
Get the Logger.getGlobal() and add some handler or listener to the main logger to receive all the logs.
Any information about this would be great!