Reputation: 17613
Why does Android
maintain 2 different Log classes that seem to support the same things?
I'm talking about:
Log
android.util.LogLogger
java.util.logging.LoggerFor what I've seen for some years developing, every Android official documentation points to the Log
and not the Logger.
Even specific loggers like the TimingLogger uses the Log
.
So why are those 2 supported?
Are there any feature that can be used through Logger
than I can't achieve through Log
?
Are there specific use cases for both?
Upvotes: 7
Views: 1633
Reputation: 11045
The feature crossover seems to be:
Seems like "android.util.Log" is going to have:
Looks like "J.U.L" is going to have:
SEVERE
error occurs you can include the last 1000 records which may be at lower level.Upvotes: 3