AppSyncFieldLogLevel Enum
log-level for fields in AppSync.
Example
ts
import * as logs from 'aws-cdk-lib/aws-logs';
const apiKeyProvider: appsync.AppSyncAuthProvider = {
authorizationType: appsync.AppSyncAuthorizationType.API_KEY,
};
const api = new appsync.EventApi(this, 'api', {
apiName: 'Api',
ownerContact: 'OwnerContact',
authorizationConfig: {
authProviders: [
apiKeyProvider,
],
connectionAuthModeTypes: [
appsync.AppSyncAuthorizationType.API_KEY,
],
defaultPublishAuthModeTypes: [
appsync.AppSyncAuthorizationType.API_KEY,
],
defaultSubscribeAuthModeTypes: [
appsync.AppSyncAuthorizationType.API_KEY,
],
},
logConfig: {
fieldLogLevel: appsync.AppSyncFieldLogLevel.INFO,
retention: logs.RetentionDays.ONE_WEEK,
},
});
api.addChannelNamespace('default');
Members
| Member | 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. |
Referenced by
AppSyncLogConfig.fieldLogLevelfield_log_levelfieldLogLevelFieldLogLevelFieldLogLevel