Skip to content

Commit 3d2c2fa

Browse files
author
awstools
committed
feat(client-appsync): Adds new logging levels (INFO and DEBUG) for additional log output control
1 parent bf60228 commit 3d2c2fa

File tree

5 files changed

+50
-10
lines changed

5 files changed

+50
-10
lines changed

clients/client-appsync/src/commands/CreateGraphqlApiCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
3838
* const input = { // CreateGraphqlApiRequest
3939
* name: "STRING_VALUE", // required
4040
* logConfig: { // LogConfig
41-
* fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
41+
* fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
4242
* cloudWatchLogsRoleArn: "STRING_VALUE", // required
4343
* excludeVerboseContent: true || false,
4444
* },
@@ -106,7 +106,7 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
106106
* // apiId: "STRING_VALUE",
107107
* // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA",
108108
* // logConfig: { // LogConfig
109-
* // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
109+
* // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
110110
* // cloudWatchLogsRoleArn: "STRING_VALUE", // required
111111
* // excludeVerboseContent: true || false,
112112
* // },

clients/client-appsync/src/commands/GetGraphqlApiCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface GetGraphqlApiCommandOutput extends GetGraphqlApiResponse, __Met
4646
* // apiId: "STRING_VALUE",
4747
* // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA",
4848
* // logConfig: { // LogConfig
49-
* // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
49+
* // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
5050
* // cloudWatchLogsRoleArn: "STRING_VALUE", // required
5151
* // excludeVerboseContent: true || false,
5252
* // },

clients/client-appsync/src/commands/ListGraphqlApisCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface ListGraphqlApisCommandOutput extends ListGraphqlApisResponse, _
5050
* // apiId: "STRING_VALUE",
5151
* // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA",
5252
* // logConfig: { // LogConfig
53-
* // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
53+
* // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
5454
* // cloudWatchLogsRoleArn: "STRING_VALUE", // required
5555
* // excludeVerboseContent: true || false,
5656
* // },

clients/client-appsync/src/commands/UpdateGraphqlApiCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface UpdateGraphqlApiCommandOutput extends UpdateGraphqlApiResponse,
3939
* apiId: "STRING_VALUE", // required
4040
* name: "STRING_VALUE", // required
4141
* logConfig: { // LogConfig
42-
* fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
42+
* fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
4343
* cloudWatchLogsRoleArn: "STRING_VALUE", // required
4444
* excludeVerboseContent: true || false,
4545
* },
@@ -102,7 +102,7 @@ export interface UpdateGraphqlApiCommandOutput extends UpdateGraphqlApiResponse,
102102
* // apiId: "STRING_VALUE",
103103
* // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA",
104104
* // logConfig: { // LogConfig
105-
* // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
105+
* // fieldLogLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
106106
* // cloudWatchLogsRoleArn: "STRING_VALUE", // required
107107
* // excludeVerboseContent: true || false,
108108
* // },

clients/client-appsync/src/models/models_0.ts

+44-4
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,9 @@ export type GraphQLApiIntrospectionConfig =
24652465
*/
24662466
export const FieldLogLevel = {
24672467
ALL: "ALL",
2468+
DEBUG: "DEBUG",
24682469
ERROR: "ERROR",
2470+
INFO: "INFO",
24692471
NONE: "NONE",
24702472
} as const;
24712473

@@ -2480,16 +2482,17 @@ export type FieldLogLevel = (typeof FieldLogLevel)[keyof typeof FieldLogLevel];
24802482
*/
24812483
export interface LogConfig {
24822484
/**
2483-
* <p>The field logging level. Values can be NONE, ERROR, or ALL.</p>
2485+
* <p>The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.</p>
24842486
* <ul>
24852487
* <li>
24862488
* <p>
24872489
* <b>NONE</b>: No field-level logs are captured.</p>
24882490
* </li>
24892491
* <li>
24902492
* <p>
2491-
* <b>ERROR</b>: Logs the following information only for the fields that are
2492-
* in error:</p>
2493+
* <b>ERROR</b>: Logs the following information
2494+
* <b>only</b> for the fields that are in the error
2495+
* category:</p>
24932496
* <ul>
24942497
* <li>
24952498
* <p>The error section in the server response.</p>
@@ -2504,14 +2507,51 @@ export interface LogConfig {
25042507
* </li>
25052508
* <li>
25062509
* <p>
2510+
* <b>INFO</b>: Logs the following information <b>only</b> for the fields that are in the info and error
2511+
* categories:</p>
2512+
* <ul>
2513+
* <li>
2514+
* <p>Info-level messages.</p>
2515+
* </li>
2516+
* <li>
2517+
* <p>The user messages sent through <code>$util.log.info</code> and
2518+
* <code>console.log</code>.</p>
2519+
* </li>
2520+
* <li>
2521+
* <p>Field-level tracing and mapping logs are not shown.</p>
2522+
* </li>
2523+
* </ul>
2524+
* </li>
2525+
* <li>
2526+
* <p>
2527+
* <b>DEBUG</b>: Logs the following information
2528+
* <b>only</b> for the fields that are in the debug, info,
2529+
* and error categories:</p>
2530+
* <ul>
2531+
* <li>
2532+
* <p>Debug-level messages.</p>
2533+
* </li>
2534+
* <li>
2535+
* <p>The user messages sent through <code>$util.log.info</code>,
2536+
* <code>$util.log.debug</code>, <code>console.log</code>, and
2537+
* <code>console.debug</code>.</p>
2538+
* </li>
2539+
* <li>
2540+
* <p>Field-level tracing and mapping logs are not shown.</p>
2541+
* </li>
2542+
* </ul>
2543+
* </li>
2544+
* <li>
2545+
* <p>
25072546
* <b>ALL</b>: The following information is logged for all fields in the
25082547
* query:</p>
25092548
* <ul>
25102549
* <li>
25112550
* <p>Field-level tracing information.</p>
25122551
* </li>
25132552
* <li>
2514-
* <p>The generated request/response functions that got resolved for each field.</p>
2553+
* <p>The generated request/response functions that were resolved for each
2554+
* field.</p>
25152555
* </li>
25162556
* </ul>
25172557
* </li>

0 commit comments

Comments
 (0)