Class BaseLogDriverProps
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class BaseLogDriverProps : Object, IBaseLogDriverProps
Syntax (vb)
Public Class BaseLogDriverProps
Inherits Object
Implements IBaseLogDriverProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var baseLogDriverProps = new BaseLogDriverProps {
Env = new [] { "env" },
EnvRegex = "envRegex",
Labels = new [] { "labels" },
Tag = "tag"
};
Synopsis
Constructors
BaseLogDriverProps() |
Properties
Env | The env option takes an array of keys. |
EnvRegex | The env-regex option is similar to and compatible with env. |
Labels | The labels option takes an array of keys. |
Tag | By default, Docker uses the first 12 characters of the container ID to tag log messages. |
Constructors
BaseLogDriverProps()
public BaseLogDriverProps()
Properties
Env
The env option takes an array of keys.
public string[] Env { get; set; }
Property Value
System.String[]
Remarks
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
EnvRegex
The env-regex option is similar to and compatible with env.
public string EnvRegex { get; set; }
Property Value
System.String
Remarks
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
Labels
The labels option takes an array of keys.
public string[] Labels { get; set; }
Property Value
System.String[]
Remarks
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
Tag
By default, Docker uses the first 12 characters of the container ID to tag log messages.
public string Tag { get; set; }
Property Value
System.String
Remarks
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID