Package 

Class PrintLogger

  • All Implemented Interfaces:
    com.hexagonkt.core.logging.LoggerPort

    
    public final class PrintLogger
     implements LoggerPort
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String name
    • Constructor Summary

      Constructors 
      Constructor Description
      PrintLogger(String name)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getName()
      <E extends Throwable> Unit log(LoggingLevel level, E exception, Function1<E, Object> message) Log a message, with associated exception information.
      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

      • PrintLogger

        PrintLogger(String name)
    • Method Detail

      • log

         <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

         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.