Comments (4)
Timber 5 is binary compatible with 4.X according to Jake Wharton (https://github.com/JakeWharton/timber/releases/tag/5.0.0). As in any library, you can simply exclude the dependency from lumberjack and add your own timber version instead.
Also, feel free to fork and update the library and create a pull request - I probably will update it but don't know when yet...
from lumberjack.
Thanks for your reply. Yes, you're right. That's what it states in the release notes. However, I couldn't get Lumberjack to work with Timber5 🤔 It's not a priority for now since we can continue using the previous version.
from lumberjack.
I get the following error when I try to use Lumberjack with Timber 5.0.1
java.lang.NoSuchMethodError: No super method getTag()Ljava/lang/String; in class Ltimber/log/Timber$Tree; or its super classes (declaration of 'timber.log.Timber$Tree' appears in /data/data/<package-name>/code_cache/.overlay/base.apk/classes20.dex)
Looks like the tag is not public API anymore in Timber 5
@get:JvmSynthetic // Hide from public API. internal open val tag: String? get() { val tag = explicitTag.get() if (tag != null) { explicitTag.remove() } return tag }
from lumberjack.
I opened an issue here: JakeWharton/timber#477
I don't think it will be changed because timber looks quite abandoned, but I think, updating to timber 5 is not that important as you get all kotlin features from lumberjack anyways and timber is just hidden internally...
So for now I'll close this issue.
Note
I could upgrade to timber v5, but this would mean I'd need to access the tag in Timber.Tree
via reflection and I think its not worth that...
from lumberjack.
Related Issues (17)
- Synthetic stacktrace didn't have enough elements: are you using proguard? HOT 5
- Log messages do not contain full package name HOT 1
- How to extend the provided Trees in Kotlin? HOT 1
- File Returned By getAllExistingLogFiles() Does Not Exist HOT 2
- Fails to show notification on api 31+ HOT 1
- Getting parse error when using file logging. HOT 1
- Runtime crash HOT 6
- Could not find com.github.MFlisar:CacheFileProvider:0.2. HOT 4
- Sending log file by email crashes when FileProvider paths are used in application HOT 2
- Create different instance or store to a different file HOT 2
- Use Timber. and L. together HOT 8
- Overlay logger - Advanced filter options HOT 1
- Overlay logger - Open advanced activity HOT 3
- Overlay logger - more layout options HOT 1
- General - improve filter HOT 1
- code line number is repeated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumberjack.