Package 

Interface RiveLog.Logger


  • 
    public interface RiveLog.Logger
    
                        

    Interface for logging. Implementations should provide methods for different log levels.

    Users can implement this interface to use a logging library, such as Timber.

    The msg parameter is a lambda to allow lazy evaluation of the log message, which can improve performance by avoiding unnecessary string concatenation when the log level is not enabled.

    • Method Summary

      Modifier and Type Method Description
      Unit v(String tag, Function0<String> msg) Log verbose.
      Unit d(String tag, Function0<String> msg) Log debug.
      Unit i(String tag, Function0<String> msg) Log info.
      Unit w(String tag, Function0<String> msg) Log warning.
      Unit e(String tag, Throwable t, Function0<String> msg) Log error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait