Interface BaseLogDriverProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
FireLensLogDriverProps,FluentdLogDriverProps,GelfLogDriverProps,JournaldLogDriverProps,JsonFileLogDriverProps,SplunkLogDriverProps,SyslogLogDriverProps
- All Known Implementing Classes:
BaseLogDriverProps.Jsii$Proxy,FireLensLogDriverProps.Jsii$Proxy,FluentdLogDriverProps.Jsii$Proxy,GelfLogDriverProps.Jsii$Proxy,JournaldLogDriverProps.Jsii$Proxy,JsonFileLogDriverProps.Jsii$Proxy,SplunkLogDriverProps.Jsii$Proxy,SyslogLogDriverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:12.524Z")
@Stability(Stable)
public interface BaseLogDriverProps
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
BaseLogDriverProps baseLogDriverProps = BaseLogDriverProps.builder()
.env(List.of("env"))
.envRegex("envRegex")
.labels(List.of("labels"))
.tag("tag")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBaseLogDriverPropsstatic final classAn implementation forBaseLogDriverProps -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseLogDriverProps.Builderbuilder()getEnv()The env option takes an array of keys.default StringThe env-regex option is similar to and compatible with env.The labels option takes an array of keys.default StringgetTag()By default, Docker uses the first 12 characters of the container ID to tag log messages.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnv
The env option takes an array of keys.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
-
getEnvRegex
The env-regex option is similar to and compatible with env.Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
-
getLabels
The labels option takes an array of keys.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
-
getTag
By default, Docker uses the first 12 characters of the container ID to tag log messages.Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
-
builder
- Returns:
- a
BaseLogDriverProps.BuilderofBaseLogDriverProps
-