LogConfig
The Amazon CloudWatch Logs configuration.
Contents
- cloudWatchLogsRoleArn
-
The service role that Amazon AppSync assumes to publish to CloudWatch logs in your account.
Type: String
Required: Yes
- fieldLogLevel
-
The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.
-
NONE: No field-level logs are captured.
-
ERROR: Logs the following information only for the fields that are in the error category:
-
The error section in the server response.
-
Field-level errors.
-
The generated request/response functions that got resolved for error fields.
-
-
INFO: Logs the following information only for the fields that are in the info and error categories:
-
Info-level messages.
-
The user messages sent through
$util.log.info
andconsole.log
. -
Field-level tracing and mapping logs are not shown.
-
-
DEBUG: Logs the following information only for the fields that are in the debug, info, and error categories:
-
Debug-level messages.
-
The user messages sent through
$util.log.info
,$util.log.debug
,console.log
, andconsole.debug
. -
Field-level tracing and mapping logs are not shown.
-
-
ALL: The following information is logged for all fields in the query:
-
Field-level tracing information.
-
The generated request/response functions that were resolved for each field.
-
Type: String
Valid Values:
NONE | ERROR | ALL | INFO | DEBUG
Required: Yes
-
- excludeVerboseContent
-
Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
Type: Boolean
Required: No
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: