Timber is an Android logging library created by Jake Wharton.
Questions tagged [timber-android]
51 questions
2
votes
2 answers
Android: a library to write log on file?
I have to write log on file and send it to the server every each app restart, or when the number of log file is enough.
After internet research: I have found Timber and java.util.logging.Logger.
I think to create a custom Timber tree and to use…

aeroxr1
- 1,014
- 1
- 14
- 36
2
votes
1 answer
How do I integrate Shipbook remote logging platform with Timber in android?
How do I integrate Shipbook remote logging platform with Timber in android?
I've done the following code:
Timber.plant(new Timber.Tree() {
@Override
protected void log(int priority, @Nullable String tag, @NotNull String message, @Nullable…

Ephraim Eitam
- 23
- 3
2
votes
1 answer
Stetho-Timber library issue with new Timber version 4.1.2
While I was trying to use stetho-timber Library in my Android application I faced this problem:
Error:Module 'com.facebook.stetho:stetho-timber:1.3.1' depends on one
or more Android Libraries but is a jar
What's wrong?!

Mohsen Mirhoseini
- 8,454
- 5
- 34
- 59
1
vote
1 answer
Timber - Problem with creating a custom Timber Debug Tree class
I'm trying to create a custom Debug Tree class to get the same result as the following:
I have followed this Stackoverflow answer:
Log method name and line number in Timber
But using that answer gives me two problems:
Implementing the custom…

DIRTY DAVE
- 2,523
- 2
- 20
- 83
1
vote
4 answers
How to initialize lateinit variable used for object expression in Kotlin?
It is not a duplication. The "object" expression is the keyword.
I am trying to integrate Timber Android Library with https://github.com/orhanobut/logger and I need a customLogStrategyForTimber for my needs.
I came up with this logic. But I am…

dsf
- 1,203
- 1
- 6
- 11
1
vote
0 answers
is there a way in Timber to show parent method name in the logs android
I know that I can show the method names in Timber and even the line number using something like that
class MyDebugTree : DebugTree() {
override fun createStackElementTag(element: StackTraceElement): String? {
return…

David Ibrahim
- 2,777
- 4
- 17
- 41
1
vote
1 answer
Using timber in separate module with auto tagging
I want to use timber in a separate module to handle logging in my android app, so that it can be called from any module and log to an internal file.
The problem is that the auto tagging doesn't work when used in a separate class instead of calling…

behelit
- 1,765
- 2
- 20
- 34
1
vote
1 answer
Log only to a specific Timber Tree
I am using timber to log logs in my project. I have planted a DebugTree for my application in Application class. I am able to use timber to log my errors and exceptions.
I, also, have a library module to be used in this project. In the library…

rupinderjeet
- 2,984
- 30
- 54
1
vote
1 answer
Proguard not stripping down Timber logs
I am using Timber logs for logging in my Android application only in the Debug environment, for that purpose, I added this line in my Application class:-
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
}
I, subsequently, used…

Shahbaz Hussain
- 542
- 4
- 21
1
vote
1 answer
Trying to add timber to Kotlin project results in multiple 'Unable to resolve dependency for...' Gradle errors
I have added implementation 'com.jakewharton.timber:timber:4.7.1' to my Kotlin project and now I get the following Gradle errors:
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the…

Dave Chambers
- 2,483
- 2
- 32
- 55
1
vote
3 answers
Is it possible to select a specific Timber Tree on runtime?
Let's assume I would like to have an app with different loggers for each part of my logic, i.e, a ConsoleLogger for common messages and a HttpLogger for just remote communication.
I have seen that Timber allows you to create different loggers…

narko
- 3,645
- 1
- 28
- 33
1
vote
0 answers
Live Template to log all variables in selection
I have a good collection of live templates that help me work efficiently, but I have yet to discover a live template which logs all variables and their values. Is there a way it can be done? I'm not familiar with groovy script…
Example:
int i1 = 1,…

usernotnull
- 3,480
- 4
- 25
- 40
1
vote
1 answer
Stripping out all Timber logs from my apk
I use the below code in my proguard rules to strip out any log.d i may have left before i compile the release apk.
> -assumenosideeffects class android.util.Log {
> public static *** d(...);
> public static *** v(...); }
Is there a way to…

usernotnull
- 3,480
- 4
- 25
- 40
1
vote
1 answer
Android Studio lint highlight with Timber not working
I've integrated Timber into a new project.
And I cannot make the lint highlight to work. Meaning stuff like this:
Timber.i("Hello, " + "world!");
Isn't highlighted to yellow.
Am I missing something? Is there a setting for this?
Running a…

a_dzik
- 927
- 2
- 11
- 24
1
vote
3 answers
May changing the visibility of too many layouts a performance issue?
Suppose you have a FrameLayout containing 10 LinearLayouts, where only one is visible per time.
Each LinearLayout is a complex view, containing Button, EditText, TextView, etc.

JP Ventura
- 5,564
- 6
- 52
- 69