JsonFileLogDriverProps Struct
Specifies the json-file log driver configuration options.
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 jsonFileLogDriverProps: ecs.JsonFileLogDriverProps = {
compress: false,
env: ['env'],
envRegex: 'envRegex',
labels: ['labels'],
maxFile: 123,
maxSize: 'maxSize',
tag: 'tag',
};
Properties
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
If rolling the logs creates excess files, the oldest file is removed. Only effective when max-size is also set. A positive integer.
A positive integer plus a modifier representing the unit of measure (k, m, or g).
Refer to the log tag option documentation for customizing the log tag format.
default
Default: The first 12 characters of the container ID