Android: java.util.logging.Logger vs android.util.Log

Why Android

does it support 2 different log classes that seem to support the same things?

I'm talking about:

For what I've seen over the years, every official Android documentation points to Log

, not Logger.

Even certain loggers like TimingLogger use Log

.


So why are these 2 supported?

Is there any function that can be used through Logger

that I cannot achieve through Log

?

Are there specific use cases for both?

+3


source to share


1 answer


The crossover function looks like this:

It seems that "android.util.Log" will have:



  • Support for Android magazine .
  • Support for streams, writers and strings.
  • It will be smaller, easier, and probably faster.

It looks like "JUL" will have:

+1


source







All Articles