Interface LoggingConfig.Builder

All Superinterfaces:
Buildable, CopyableBuilder<LoggingConfig.Builder,LoggingConfig>, SdkBuilder<LoggingConfig.Builder,LoggingConfig>, SdkPojo
Enclosing class:
LoggingConfig

public static interface LoggingConfig.Builder extends SdkPojo, CopyableBuilder<LoggingConfig.Builder,LoggingConfig>
  • Method Details

    • logFormat

      LoggingConfig.Builder logFormat(String logFormat)

      The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.

      Parameters:
      logFormat - The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logFormat

      LoggingConfig.Builder logFormat(LogFormat logFormat)

      The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.

      Parameters:
      logFormat - The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • applicationLogLevel

      LoggingConfig.Builder applicationLogLevel(String applicationLogLevel)

      Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.

      Parameters:
      applicationLogLevel - Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • applicationLogLevel

      LoggingConfig.Builder applicationLogLevel(ApplicationLogLevel applicationLogLevel)

      Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.

      Parameters:
      applicationLogLevel - Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • systemLogLevel

      LoggingConfig.Builder systemLogLevel(String systemLogLevel)

      Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.

      Parameters:
      systemLogLevel - Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • systemLogLevel

      LoggingConfig.Builder systemLogLevel(SystemLogLevel systemLogLevel)

      Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.

      Parameters:
      systemLogLevel - Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logGroup

      LoggingConfig.Builder logGroup(String logGroup)

      The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/<function name>. To use a different log group, enter an existing log group or enter a new log group name.

      Parameters:
      logGroup - The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/<function name>. To use a different log group, enter an existing log group or enter a new log group name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.