-
Notifications
You must be signed in to change notification settings - Fork 954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple Timber from Android.Log #63
Conversation
Would be awesome if The timber class was pure java, and you could "plant" an android tree in it. |
@JakeWharton Can you take a look at this? This would be a nice option to have. |
I don't like the idea of using slf4j as an abstraction. |
@JakeWharton there is no slf4j on my PR. What do you mean with that? |
The You would need a pure java |
@ZakTaccardi take a look at the diff in this PR. A pure java |
Check this |
I was so sad about "no Timber when not on Android" that I asked in the Kotlin discussion forum. Cross-linking in case anyone comes here from there, or in case anyone watching this FR has a solution. Thanks again for Timber in the Android world! |
For what it's worth, the version on master works on Android, JVM, and JS
and publishes a Kotlin Common artifact as well.
…On Sun, Sep 30, 2018 at 10:58 PM Benjamin Hill ***@***.***> wrote:
I was so sad about "no Timber when not on Android" that I asked in the
Kotlin discussion forum
<https://discuss.kotlinlang.org/t/jealous-of-timber-logging-for-a-plain-java-app/9638>.
Cross-linking in case anyone comes here from there, or in case anyone
watching this FR has a solution. Thanks again for Timber in the Android
world!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEEXs9DcWanOUXI7eKVKav1qwAxJieks5ugYTogaJpZM4Elw1K>
.
|
No but wait... that's actually worth quite a bit. Fantastic, going to try it now, thank you! |
Yaaaa... I dunno, I've got something twisted wrong. pom.xml
Which results in
which then goes to..
|
@salamanders You want to use this: <dependency>
<groupId>com.jakewharton.timber</groupId>
<artifactId>timber-jdk</artifactId>
<version>5.0.0-SNAPSHOT</version>
</dependency> |
Nice! |
That's in a separate artifact: <dependency>
<groupId>com.jakewharton.timber</groupId>
<artifactId>timber-android</artifactId>
<version>5.0.0-SNAPSHOT</version>
</dependency> It also has been renamed to |
What should the hello-world jvm debug logger use case use? (Answer might be "that one" but I wanted to ask, because I'm not on android for this) |
If anyone's coming here looking for multiplatform support, it looks like this has been reverted from master: 72efb7c. The code is in the The Android Tree is |
The sonatype snapshots for Timber 5.0.0 are still working and are used by SdkSearch. However, the new I'm wondering if there are plans to release Timber 5 with JDK or Kotlin Multiplatform support any time soon and if the automatic tag inference will be re-implemented. #338 might be the issue tracking this progress. |
Hi Jake!
Few days ago I opened issue #62 asking about the possibility of removing android.Log from Timber class so it can be a pure Java logger. You closed it as a dupe of #29, which asks for making Timber dependent of slf4j-api. I'm not sure these two are asking for the same.
In order to make my issue more clear I have created this PR as an "illustrative" solution. I know it may not be the best, mainly because it breaks the chain of compatibility for older versions because in favor of a new namespace for DebugTree (timber.log.android.DebugTree). But, at least, I hope that you can get a better picture of the goal that I want to achieve.
Look forward to your feedback.
Thanks!