Show / Hide Table of Contents

Class GelfLogDriver

A log driver that sends log information to journald Logs.

Inheritance
object
LogDriver
GelfLogDriver
Inherited Members
LogDriver.AwsLogs(IAwsLogDriverProps)
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.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;
            using Amazon.CDK.AWS.ECS;

            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.

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.

Remarks

ExampleMetadata: fixture=_generated

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

ILogDriverConfig

Overrides
LogDriver.Bind(Construct, ContainerDefinition)
Remarks

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX