Class JSONLoggerOutput
java.lang.Object
io.github.vitalijr2.aws.lambda.slf4j.logger.JSONLoggerOutput
- All Implemented Interfaces:
AWSLambdaLoggerOutput
An SLF4J Logger implementation for AWS Lambda with JSON output.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JSONLoggerOutput
public JSONLoggerOutput()
-
-
Method Details
-
log
public void log(@NotNull @NotNull AWSLambdaLoggerConfiguration configuration, @Nullable @Nullable Marker marker, @NotNull @NotNull Level level, @NotNull @NotNull String message, @Nullable @Nullable Throwable throwable) Write a message to the AWS lambda log in JSON.- Specified by:
log
in interfaceAWSLambdaLoggerOutput
- Parameters:
configuration
- logging configurationmarker
- logging markerlevel
- logging levelmessage
- logging messagethrowable
- exception
-