class FluentdLogDriver
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.FluentdLogDriver |
![]() | software.amazon.awscdk.services.ecs.FluentdLogDriver |
![]() | aws_cdk.aws_ecs.FluentdLogDriver |
![]() | @aws-cdk/aws-ecs » FluentdLogDriver |
Extends
Log
A log driver that sends log information to journald Logs.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ecs from '@aws-cdk/aws-ecs';
import * as cdk from '@aws-cdk/core';
const fluentdLogDriver = new ecs.FluentdLogDriver(/* all optional props */ {
address: 'address',
asyncConnect: false,
bufferLimit: 123,
env: ['env'],
envRegex: 'envRegex',
labels: ['labels'],
maxRetries: 123,
retryWait: cdk.Duration.minutes(30),
subSecondPrecision: false,
tag: 'tag',
});
Initializer
new FluentdLogDriver(props?: FluentdLogDriverProps)
Parameters
- props
Fluentd
— the fluentd log driver configuration options.Log Driver Props
Constructs a new instance of the FluentdLogDriver 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.