Interface LoggingConfig.Builder

    • Method Detail

      • 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, LogFormat
      • 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:
        LogFormat, LogFormat
      • 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 and lower.

        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 and lower.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ApplicationLogLevel, ApplicationLogLevel
      • 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 and lower.

        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 and lower.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ApplicationLogLevel, ApplicationLogLevel
      • 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 and lower.

        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 and lower.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SystemLogLevel, SystemLogLevel
      • 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 and lower.

        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 and lower.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SystemLogLevel, SystemLogLevel
      • 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.