When DebugTree logs, I see the class name, however, when I create my own tree, the null tag. Here's what my regular tree looks like:
public class CrashlyticsTree extends Timber.Tree { private static final String CRASHLYTICS_KEY_PRIORITY = "priority"; private static final String CRASHLYTICS_KEY_TAG = "tag"; private static final String CRASHLYTICS_KEY_MESSAGE = "message"; @Override protected boolean isLoggable(int priority) { if (priority == Log.VERBOSE || priority == Log.DEBUG || priority == Log.INFO) { return false; }
However, even from DebugTree the BaseActivity tag is BaseActivity , because it comes from BaseActivity , but I was wondering if there is a way to get the name of the class that extends BaseActivity
source share