JakeWharton / JakeWharton/timber
Is it possible to add TAG prefix?
- Dominant language
- Kotlin
- Stars
- 10.8k
- Forks
- 994
- Avg merge
- 17h 16m
- Merged PRs (30d)
- 17
Description
[Question] - Recently we started using Timber in my company. There is a requirement where we need to filter the logs from our app and, so far, we were using ```Runtime.getRuntime().exec("logcat -d")``` to collect the logs. Is there a way to add a default TAG for all logs, i.e. concatenate the pkg on the class name for all classes so we could do this filter? The workaround I've found was to override ```getTag()``` and use a customTree. Is there a simpler way?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at Timber's getTag() entry point and the customTree workaround described in the issue, then check how Android logcat receives tags. Done means a maintainer-approved, clearly scoped answer or change for applying a default package/class prefix to all logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100