Skip to content
v2.274.0

FieldLogLevel Enum ​

log-level for fields in AppSync.

Example ​

ts
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 ​

MemberDescription
NONEResolver logging is disabled.
ERROROnly Error messages appear in logs.
INFOInfo and Error messages appear in logs.
DEBUGDebug, Info, and Error messages, appear in logs.
ALLAll messages (Debug, Error, Info, and Trace) appear in logs.

Referenced by ​

  • LogConfig.fieldLogLevelfield_log_levelfieldLogLevelFieldLogLevelFieldLogLevel