This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::Lambda::WebFunctionRevision LoggingConfig
The function's Amazon CloudWatch Logs configuration settings.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "ApplicationLogLevel" :String, "LogGroup" :String, "SystemLogLevel" :String}
YAML
ApplicationLogLevel:StringLogGroup:StringSystemLogLevel:String
Properties
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
TRACEis the highest level andFATALis the lowest.Required: No
Type: String
Allowed values:
TRACE | DEBUG | INFO | WARN | ERROR | FATALUpdate requires: Replacement
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.Required: No
Type: String
Pattern:
^[a-zA-Z0-9\.\-_/#]+$Minimum:
1Maximum:
500Update requires: Replacement
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
DEBUGis the highest level andWARNis the lowest.Required: No
Type: String
Allowed values:
DEBUG | INFO | WARNUpdate requires: Replacement