Class DurableLogger
java.lang.Object
software.amazon.lambda.durable.logging.DurableLogger
Logger wrapper that adds durable execution context to log entries via MDC and optionally suppresses logs during
replay.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDurableLogger(org.slf4j.Logger delegate) Creates a DurableLogger wrapping the given SLF4J logger with execution context MDC entries. -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DurableLogger
public DurableLogger(org.slf4j.Logger delegate) Creates a DurableLogger wrapping the given SLF4J logger with execution context MDC entries.- Parameters:
delegate- the SLF4J logger to wrap
-
-
Method Details
-
attachContext
-
detachContext
public static void detachContext() -
trace
-
debug
-
info
-
warn
-
error
-
error
-