https://kotlinlang.org logo
#touchlab-tools
Title
# touchlab-tools
h

Hemant Gokhale

10/10/2023, 10:52 PM
Hi guys. The Kermit website says "Disable local logging for production, or even strip log statements altogether with a compiler plugin". I am interested in the latter i.e. "strip log statements altogether with a compiler plugin". Is such a compiler plugin available? I couldn't find any information on that. If it exists, can somebody please point me to it?
k

kpgalligan

10/11/2023, 11:37 AM
There was. The code is still there (https://github.com/touchlab/Kermit/tree/main/plugin), but we'd need to update it. I added it maybe 2 years ago, as it seemed pretty useful, but we never used it, and nobody I'm aware of did either, so I didn't prioritize it when we did v2. Will add an issue to review bringing that back. It did quite literally just "erase" all logging calls.
h

Hemant Gokhale

10/11/2023, 10:32 PM
Thank you, Kevin. It would great to have the ability to "erase" the logging calls.
2 Views