No matter what we think about it, many other Java libraries want to be compatible with Android (even though that's not the main target). Some of them also do logging, today often with Log4j 1, SLF4J or commons-logging.

If we want them to migrate to Log4j 2 API, then it is important that log4j-api does not cause issues on Android. If log4j-api breaks on Android, that may be the reason for those libraries to not use it.

I guess that Apache http-components is an example of this.

Android support in log4j-core is less important (we can defer that to 2.10 or possibly not do it al all). We don't need to be able to do fancy logging on Android, but log4j-api should at least not break the build or disrupt the regular operation of the app at runtime.

If we don't do anything about it, then your effort on LOG4J2-1926 might be wasted when the Java 9 stuff breaks Android builds.


On 2017-07-09 14:15, Remko Popma wrote:
Not sure I agree. Our interest in Android is a very recent thing. We've
done some work with LOG4J2-1926
<https://issues.apache.org/jira/browse/LOG4J2-1926>, we are still
discovering new work and I suspect we will keep discovering new issues as
we start to take an in-depth look. If anything, let's make Android the
"theme" for Log4j 2.10.

Java 9 has been on the roadmap for a long time and is finally in a state
where we can start asking for user feedback on it.
I don't mind that Java 9 is still not officially released yet; it gives us
some wiggle room in case we need to make changes.

But I do like the version number symmetry: "Log4j offers Java 9 support
from version 2.9". Call me a poet. :-)

Reply via email to