@Stability(value=Stable) public static final class JournaldLogDriver.Builder extends Object implements software.amazon.jsii.Builder<JournaldLogDriver>
JournaldLogDriver.| Modifier and Type | Method and Description |
|---|---|
JournaldLogDriver |
build() |
static JournaldLogDriver.Builder |
create() |
JournaldLogDriver.Builder |
env(List<String> env)
The env option takes an array of keys.
|
JournaldLogDriver.Builder |
envRegex(String envRegex)
The env-regex option is similar to and compatible with env.
|
JournaldLogDriver.Builder |
labels(List<String> labels)
The labels option takes an array of keys.
|
JournaldLogDriver.Builder |
tag(String tag)
By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
@Stability(value=Stable) public static JournaldLogDriver.Builder create()
JournaldLogDriver.Builder.@Stability(value=Stable) public JournaldLogDriver.Builder env(List<String> env)
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.
Default: - No env
env - The env option takes an array of keys. This parameter is required.this@Stability(value=Stable) public JournaldLogDriver.Builder envRegex(String envRegex)
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
envRegex - The env-regex option is similar to and compatible with env. This parameter is required.this@Stability(value=Stable) public JournaldLogDriver.Builder labels(List<String> labels)
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.
Default: - No labels
labels - The labels option takes an array of keys. This parameter is required.this@Stability(value=Stable) public JournaldLogDriver.Builder tag(String tag)
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
tag - By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.this@Stability(value=Stable) public JournaldLogDriver build()
build in interface software.amazon.jsii.Builder<JournaldLogDriver>Copyright © 2022. All rights reserved.