

# api-gw-execution-logging-enabled
<a name="api-gw-execution-logging-enabled"></a>

Checks if all methods in Amazon API Gateway stages have logging enabled. The rule is NON\$1COMPLIANT if logging is not enabled, or if `loggingLevel` is neither ERROR nor INFO. 



**Identifier:** API\$1GW\$1EXECUTION\$1LOGGING\$1ENABLED

**Resource Types:** AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage

**Trigger type:** Configuration changes

**AWS Region:** All supported AWS regions except Asia Pacific (New Zealand), Asia Pacific (Taipei) Region

**Parameters:**

loggingLevel (Optional)Type: StringDefault: ERROR,INFO  
Comma-separated list of specific logging levels (for example, ERROR, INFO or ERROR,INFO).

## AWS CloudFormation template
<a name="w2aac20c16c17b7c79c19"></a>

To create AWS Config managed rules with AWS CloudFormation templates, see [Creating AWS Config Managed Rules With AWS CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).