I noticed that the ActionBarSherlock library displays a lot of debugging information in my application, simply because there are many lines like this:
if (BuildConfig.DEBUG) Log.d(TAG, "[onCreatePanelMenu] featureId: " + featureId + ", menu: " + menu);
Fortunately, the log is only displayed on my debug device. Thanks to the if .
The big problem is that I would like to delete the entire log on the debugging device in order to focus on my code.
I know 2 solutions to avoid this:
- Delete / edit all logs in the library
- Filter the logarithm to Eclipse.
Is there an easier way to achieve this and "fake" the library by saying that we are not on the debugging device? I really would like to avoid the 2 above solutions.
source share