Optional
excludeWhen set to true
, excludes verbose information from the logs, such as:
This setting applies regardless of the specified logging level.
WARNING: Verbose logging will log the full incoming query including user parameters. Sensitive information may be exposed in CloudWatch logs. Ensure that your IAM policies only grant access to authorized users.
Optional
fieldThe field logging level. Values can be 'none'
, 'error'
, 'info'
, 'debug'
, or 'all'
.
$util.log.info
and console.log
.$util.log.info
, $util.log.debug
, console.log
, and console.debug
.Optional
retentionThe number of days log events are kept in CloudWatch Logs.
Customizable logging configuration when writing GraphQL operations and tracing to Amazon CloudWatch for an AWS AppSync GraphQL API.
WARNING: Verbose logging will log the full incoming query including user parameters. Sensitive information may be exposed in CloudWatch logs. Ensure that your IAM policies only grant access to authorized users.
For information on AppSync's LogConfig, refer to https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html. For information on RetentionDays, refer to https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.RetentionDays.html.
Default