Class JSONLoggerOutput

java.lang.Object
io.github.vitalijr2.aws.lambda.slf4j.logger.JSONLoggerOutput
All Implemented Interfaces:
AWSLambdaLoggerOutput

public class JSONLoggerOutput extends Object implements AWSLambdaLoggerOutput
An SLF4J Logger implementation for AWS Lambda with JSON output.
  • 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 interface AWSLambdaLoggerOutput
      Parameters:
      configuration - logging configuration
      marker - logging marker
      level - logging level
      message - logging message
      throwable - exception