Usage in Android
itsandreramon opened this issue · comments
Is it possible to use Flogger on Android?
It is technically possible, but it's generally not good for binaries which
care about bytecode size, symbol counts, number of allocations during
startup etc.
Flogger's expected usage pattern (one logger per class) means lots of
allocations during class initialization and can slow down application
startup.
There's also the way it uses many overrides of the "log()" method to cut
down on varargs allocations (which means a high symbol count).
Finally, Android applications often want to "disable" some logging at build
time and remove all log statements below a certain level completely in a
release build (for bytecode size reasons).
There are ways to address this via bytecode rewriting (e.g. using things
like Proguard) but we're not 100% there on making Flogger-on-Android a
great user experience for everyone, so we've decided to hold back a bit on
releasing support until everything is working properly.
There are people working on this (I'm not one of them though) and it's
definitely something other open-source Google applications are interested
in, so it will happen (and hopefully sooner rather than later).
Sorry I don't have better news though,
David
…On Sat, 5 Sep 2020 at 20:03, André Ramon ***@***.***> wrote:
Is it possible to use Flogger on Android?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#186>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGTWYVUOUVKQ7B6ZMFQ4MLSEJ4PJANCNFSM4Q3FZZSQ>
.
--
David Beaumont :: Îñţérñåţîöñåļîžåţîờñ Libraries :: Google
Google Switzerland GmbH., Brandschenkestrasse 110, CH-8002, Zürich -
Switzerland
Any updates on this in the intervening 2 years?
Sadly not really. I'll update as soon as I have anything positive in this regard.