ServiceConnectAccessLogFormat Enum
The format of Service Connect access logs.
Example
ts
declare const cluster: ecs.Cluster;
declare const taskDefinition: ecs.TaskDefinition;
const service = new ecs.FargateService(this, 'Service', {
cluster,
taskDefinition,
serviceConnectConfiguration: {
services: [
{
portMappingName: 'api',
},
],
accessLogConfiguration: {
format: ecs.ServiceConnectAccessLogFormat.JSON,
includeQueryParameters: true,
},
// When configuring access log,
// you also need to configure the log driver accordingly.
logDriver: ecs.LogDrivers.awsLogs({
streamPrefix: 'prefix',
}),
},
});
Members
| Member | Description |
|---|---|
TEXT | Human-readable text format for access logs. |
JSON | Structured JSON format for access logs. |
Referenced by
ServiceConnectAccessLogConfiguration.formatformatformatFormatFormat