Package 

Interface LoggerPort

  • All Implemented Interfaces:

    
    public interface LoggerPort
    
                        

    A Logger is used to log messages for a specific system or application component.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract <E extends Throwable> Unit log(LoggingLevel level, E exception, Function1<E, Object> message) Log a message, with associated exception information.
      abstract Unit log(LoggingLevel level, Function0<Object> message) Log a message.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • log

         abstract <E extends Throwable> Unit log(LoggingLevel level, E exception, Function1<E, Object> message)

        Log a message, with associated exception information.

        Parameters:
        level - One of the message level identifiers, e.g., TRACE.
        exception - The exception associated with log message.
        message - The required message to log.
      • log

         abstract Unit log(LoggingLevel level, Function0<Object> message)

        Log a message.

        Parameters:
        level - One of the message level identifiers, e.g., TRACE.
        message - The required message to log.