Module: AWSCDK::Lambda::EventSourceMappingLogLevel

Defined in:
lambda/event_source_mapping_log_level.rb

Overview

The log level for the event source mapping poller.

Controls the verbosity of logs generated by the polling infrastructure. Different log levels provide varying amounts of detail:

  • INFO: Standard operational information suitable for production monitoring
  • DEBUG: Detailed diagnostic information for development and troubleshooting
  • WARN: Warning messages and potential issues that don't prevent normal operation

These logs are separate from your Lambda function's application logs and focus on the event source mapping's internal operations such as connection management, polling behavior, and infrastructure-level error conditions.

// Configure INFO level logging for production monitoring let func: lambda.IFunction; const eventSourceMapping = func.addEventSourceMapping(event_source_mapping_name, { logLevel: lambda.EventSourceMappingLogLevel.INFO });

// Configure DEBUG level logging for detailed troubleshooting let func: lambda.IFunction; const eventSourceMapping = func.addEventSourceMapping(event_source_mapping_name, { logLevel: lambda.EventSourceMappingLogLevel.DEBUG });

Constant Summary collapse

INFO =
Deprecated.
Note:

Default:

Messages that record the normal operation of your poller.

Jsii::Enum.new("aws-cdk-lib.aws_lambda.EventSourceMappingLogLevel", "INFO")
DEBUG =
Deprecated.
Note:

Default:

Detailed information for poller debugging.

Jsii::Enum.new("aws-cdk-lib.aws_lambda.EventSourceMappingLogLevel", "DEBUG")
WARN =
Deprecated.
Note:

Default:

Messages about potential errors that may lead to unexpected behavior if unaddressed.

Jsii::Enum.new("aws-cdk-lib.aws_lambda.EventSourceMappingLogLevel", "WARN")