Class GelfLogDriver
A log driver that sends log information to journald Logs.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class GelfLogDriver : LogDriver
Syntax (vb)
Public Class GelfLogDriver
Inherits LogDriver
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;
using Amazon.CDK;
var gelfLogDriver = new GelfLogDriver(new GelfLogDriverProps {
Address = "address",
// the properties below are optional
CompressionLevel = 123,
CompressionType = GelfCompressionType.GZIP,
Env = new [] { "env" },
EnvRegex = "envRegex",
Labels = new [] { "labels" },
Tag = "tag",
TcpMaxReconnect = 123,
TcpReconnectDelay = Duration.Minutes(30)
});
Synopsis
Constructors
GelfLogDriver(IGelfLogDriverProps) | Constructs a new instance of the GelfLogDriver class. |
GelfLogDriver(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GelfLogDriver(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct, ContainerDefinition) | Called when the log driver is configured on a container. |
Constructors
GelfLogDriver(IGelfLogDriverProps)
Constructs a new instance of the GelfLogDriver class.
public GelfLogDriver(IGelfLogDriverProps props)
Parameters
- props IGelfLogDriverProps
the gelf log driver configuration options.
GelfLogDriver(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GelfLogDriver(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GelfLogDriver(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GelfLogDriver(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct, ContainerDefinition)
Called when the log driver is configured on a container.
public override ILogDriverConfig Bind(Construct scope, ContainerDefinition containerDefinition)
Parameters
- scope Construct
- containerDefinition ContainerDefinition
Returns