Skip to content

LoggingConfig

Source code in docs_src/capo_lambda/types/logging_config.py
class LoggingConfig(TypedDict, closed=True):
    log_format: NotRequired["capo_lambda.types.log_format.LogFormat"]
    """<p>The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.</p>"""
    application_log_level: NotRequired[
        "capo_lambda.types.application_log_level.ApplicationLogLevel"
    ]
    """<p>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 <code>TRACE</code> is the highest level and <code>FATAL</code> is the lowest.</p>"""
    system_log_level: NotRequired["capo_lambda.types.system_log_level.SystemLogLevel"]
    """<p>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 <code>DEBUG</code> is the highest level and <code>WARN</code> is the lowest.</p>"""
    log_group: NotRequired["capo_lambda.types.log_group.LogGroup"]
    """<p>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 <code>/aws/lambda/&lt;function name&gt;</code>. To use a different log group, enter an existing log group or enter a new log group name.</p>"""

application_log_level instance-attribute

application_log_level: NotRequired[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.

log_format instance-attribute

log_format: NotRequired[LogFormat]

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

log_group instance-attribute

log_group: NotRequired[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.

system_log_level instance-attribute

system_log_level: NotRequired[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.