-
- All Implemented Interfaces:
-
com.hexagonkt.core.logging.LoggerPort
public final class PrintLogger implements LoggerPort
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringname
-
Constructor Summary
Constructors Constructor Description PrintLogger(String name)
-
Method Summary
Modifier and Type Method Description final StringgetName()<E extends Throwable> Unitlog(LoggingLevel level, E exception, Function1<E, Object> message)Log a message, with associated exception information. Unitlog(LoggingLevel level, Function0<Object> message)Log a message. -
-
Method Detail
-
getName
final String getName()
-
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.
-
-
-
-