

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Lambda::WebFunctionRevision LoggingConfig
<a name="aws-properties-lambda-webfunctionrevision-loggingconfig"></a>

The logging configuration for a web function revision.

## Syntax
<a name="aws-properties-lambda-webfunctionrevision-loggingconfig-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-lambda-webfunctionrevision-loggingconfig-syntax.json"></a>

```
{
  "[ApplicationLogLevel](#cfn-lambda-webfunctionrevision-loggingconfig-applicationloglevel)" : {{String}},
  "[LogGroup](#cfn-lambda-webfunctionrevision-loggingconfig-loggroup)" : {{String}},
  "[SystemLogLevel](#cfn-lambda-webfunctionrevision-loggingconfig-systemloglevel)" : {{String}}
}
```

### YAML
<a name="aws-properties-lambda-webfunctionrevision-loggingconfig-syntax.yaml"></a>

```
  [ApplicationLogLevel](#cfn-lambda-webfunctionrevision-loggingconfig-applicationloglevel): {{String}}
  [LogGroup](#cfn-lambda-webfunctionrevision-loggingconfig-loggroup): {{String}}
  [SystemLogLevel](#cfn-lambda-webfunctionrevision-loggingconfig-systemloglevel): {{String}}
```

## Properties
<a name="aws-properties-lambda-webfunctionrevision-loggingconfig-properties"></a>

`ApplicationLogLevel`  <a name="cfn-lambda-webfunctionrevision-loggingconfig-applicationloglevel"></a>
The log level for application logs emitted by the web function. If you don't specify a value, the default is `INFO`.  
*Required*: No  
*Type*: String  
*Allowed values*: `TRACE | DEBUG | INFO | WARN | ERROR | FATAL`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`LogGroup`  <a name="cfn-lambda-webfunctionrevision-loggingconfig-loggroup"></a>
The name of the Amazon CloudWatch Logs log group the web function sends logs to. If you don't specify a value, the default is `/aws/lambda/web/{functionName}`.  
*Required*: No  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9\.\-_/#]+$`  
*Minimum*: `1`  
*Maximum*: `500`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SystemLogLevel`  <a name="cfn-lambda-webfunctionrevision-loggingconfig-systemloglevel"></a>
The log level for system logs emitted by the Lambda runtime. If you don't specify a value, the default is `INFO`.  
*Required*: No  
*Type*: String  
*Allowed values*: `DEBUG | INFO | WARN`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)