class GelfLogDriver
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.GelfLogDriver |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#GelfLogDriver |
![]() | software.amazon.awscdk.services.ecs.GelfLogDriver |
![]() | aws_cdk.aws_ecs.GelfLogDriver |
![]() | aws-cdk-lib » aws_ecs » GelfLogDriver |
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 cdk from 'aws-cdk-lib';
import { aws_ecs as ecs } from 'aws-cdk-lib';
const gelfLogDriver = new ecs.GelfLogDriver({
address: 'address',
// the properties below are optional
compressionLevel: 123,
compressionType: ecs.GelfCompressionType.GZIP,
env: ['env'],
envRegex: 'envRegex',
labels: ['labels'],
tag: 'tag',
tcpMaxReconnect: 123,
tcpReconnectDelay: cdk.Duration.minutes(30),
});
Initializer
new GelfLogDriver(props: GelfLogDriverProps)
Parameters
- props
Gelf
— the gelf log driver configuration options.Log Driver Props
Constructs a new instance of the GelfLogDriver 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.