-
public class TwigA twig is a tiny log. These logs are intended for development rather than for high performance or usage in production.
-
-
Method Summary
Modifier and Type Method Description final Unitinitialize(Context context)For best results, call this method before trying to log messages. final static Unitverbose(Function0<String> message)final static Unitverbose(Throwable throwable, Function0<String> message)final static Unitdebug(Function0<String> message)final static Unitdebug(Throwable throwable, Function0<String> message)final static Unitinfo(Function0<String> message)final static Unitinfo(Throwable throwable, Function0<String> message)final static Unitwarn(Function0<String> message)final static Unitwarn(Throwable throwable, Function0<String> message)final static Uniterror(Function0<String> message)final static Uniterror(Throwable throwable, Function0<String> message)final static UnitassertLoggingStripped()Can be called in a release build to test that assumenosideeffectsProGuard rules have been properly processed to strip out logging messages.-
-
Method Detail
-
initialize
final Unit initialize(Context context)
For best results, call this method before trying to log messages.
-
assertLoggingStripped
final static Unit assertLoggingStripped()
Can be called in a release build to test that
assumenosideeffectsProGuard rules have been properly processed to strip out logging messages.JVMStatic is to simplify ProGuard/R8 rules for stripping this
-
-
-
-