JakeWharton / JakeWharton/timber
Lint fix for "Using 'Log' instead of 'Timber...' is incorrectly applied
- Dominant language
- Kotlin
- Stars
- 10.8k
- Forks
- 994
- Avg merge
- 17h 16m
- Merged PRs (30d)
- 17
Description
The lint checks that are applied whenever you use `Log` instead of `Timber` suggests that you should use `Timber` instead.
e.g.
```kotlin
Log.e("MyActivity", "Logging an error")
```

However, when you apply the suggested fix (1st or 2nd option in the screenshot), you get:
```kotlin
Log.Timber.e("Logging an error")
```
**Update**: This is only an issue in Kotlin.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Kotlin lint check shown in the issue and inspect the lint suggested-fix path for Log calls using the `Log` and `Timber` examples. Done means applying either suggested fix produces a valid Timber call such as `Timber.e("Logging an error")`, rather than `Log.Timber.e(...)`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100