class JournaldLogDriver
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.JournaldLogDriver |
![]() | software.amazon.awscdk.services.ecs.JournaldLogDriver |
![]() | aws_cdk.aws_ecs.JournaldLogDriver |
![]() | @aws-cdk/aws-ecs » JournaldLogDriver |
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';
const journaldLogDriver = new ecs.JournaldLogDriver(/* all optional props */ {
env: ['env'],
envRegex: 'envRegex',
labels: ['labels'],
tag: 'tag',
});
Initializer
new JournaldLogDriver(props?: JournaldLogDriverProps)
Parameters
- props
Journald
— the journald log driver configuration options.Log Driver Props
Constructs a new instance of the JournaldLogDriver 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.