enum FieldLogLevel
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.FieldLogLevel |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#FieldLogLevel |
Java | software.amazon.awscdk.services.appsync.FieldLogLevel |
Python | aws_cdk.aws_appsync.FieldLogLevel |
TypeScript (source) | aws-cdk-lib » aws_appsync » FieldLogLevel |
log-level for fields in AppSync.
Example
import * as logs from 'aws-cdk-lib/aws-logs';
new appsync.GraphqlApi(this, 'api', {
authorizationConfig: {},
name: 'myApi',
definition: appsync.Definition.fromFile(path.join(__dirname, 'myApi.graphql')),
logConfig: {
fieldLogLevel: appsync.FieldLogLevel.INFO,
retention: logs.RetentionDays.ONE_WEEK,
},
});
Members
Name | Description |
---|---|
NONE | Resolver logging is disabled. |
ERROR | Only Error messages appear in logs. |
INFO | Info and Error messages appear in logs. |
DEBUG | Debug, Info, and Error messages, appear in logs. |
ALL | All messages (Debug, Error, Info, and Trace) appear in logs. |
NONE
Resolver logging is disabled.
ERROR
Only Error messages appear in logs.
INFO
Info and Error messages appear in logs.
DEBUG
Debug, Info, and Error messages, appear in logs.
ALL
All messages (Debug, Error, Info, and Trace) appear in logs.