From 40067991353d7ee88215f854f6edada62c8ca728 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Tue, 22 Oct 2024 11:04:07 +1300 Subject: [PATCH] Switch Json logs for lambda server. --- packages/_infra/src/serve/lambda.tiler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/_infra/src/serve/lambda.tiler.ts b/packages/_infra/src/serve/lambda.tiler.ts index 3d9382fdb..4badae74e 100644 --- a/packages/_infra/src/serve/lambda.tiler.ts +++ b/packages/_infra/src/serve/lambda.tiler.ts @@ -54,6 +54,7 @@ export class LambdaTiler extends Construct { architecture: lambda.Architecture.ARM_64, environment, logRetention: RetentionDays.ONE_MONTH, + logFormat: lambda.LogFormat.JSON, }); this.functionUrl = new lambda.FunctionUrl(this, 'LambdaCogUrl', {