Package 

Interface Logger


  • 
    public interface Logger
    
                        

    A logger interface for logging messages at different levels.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum Logger.Level
    • Method Summary

      Modifier and Type Method Description
      abstract Unit log(Logger.Level level, String tag, Throwable throwable, Function0<String> message) Logs a message at the specified level with an optional throwable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • log

         abstract Unit log(Logger.Level level, String tag, Throwable throwable, Function0<String> message)

        Logs a message at the specified level with an optional throwable.

        Parameters:
        level - The log level.
        tag - A tag to identify the source of the log message.
        throwable - An optional throwable associated with the log message.
        message - A lambda that produces the log message.