Log.i("Test", "Hello, Log")
Timber.i("Hello, Timber")
I can see the Log.i log in Debug console and Logcat, I don't see the Timber log in anywhere.
I/Test: Hello, Log
I'm building in stagingDebug mode. (I have 4 options, production debug and release and staging debug and release)
What I'm missing?
Make sure that you have initialised Timber
in Application
class. Following code might help :-
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// This will initialise Timber
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With