class JsonFileLogDriver
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.JsonFileLogDriver |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#JsonFileLogDriver |
![]() | software.amazon.awscdk.services.ecs.JsonFileLogDriver |
![]() | aws_cdk.aws_ecs.JsonFileLogDriver |
![]() | aws-cdk-lib » aws_ecs » JsonFileLogDriver |
Extends
Log
A log driver that sends log information to json-file Logs.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const jsonFileLogDriver = new ecs.JsonFileLogDriver(/* all optional props */ {
compress: false,
env: ['env'],
envRegex: 'envRegex',
labels: ['labels'],
maxFile: 123,
maxSize: 'maxSize',
tag: 'tag',
});
Initializer
new JsonFileLogDriver(props?: JsonFileLogDriverProps)
Parameters
- props
Json
— the json-file log driver configuration options.File Log Driver Props
Constructs a new instance of the JsonFileLogDriver class.
Methods
Name | Description |
---|---|
bind(_scope, _containerDefinition) | Called when the log driver is configured on a container. |
bind(_scope, _containerDefinition)
public bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig
Parameters
- _scope
Construct
- _containerDefinition
Container
Definition
Returns
Called when the log driver is configured on a container.