Never use senseless debuging levels, Exceptions should always result in ERROR-Level and not debugging level...
public class MyApp {
private static final String LOG_TAG = MyApp.class.getSimpleName();
public void somethingsWrong() {
Object obj = null;
try {
obj.toString();
} catch (NullPointerException npe) {
Log.e(LOG_TAG, "Object is null");
}
}
}
1 Comment
Better way