Fugue.AWS.ECS.LogConfiguration

Module Members

jsonFile

(Function)

Setup the json-file logging driver for Docker.

See https://docs.docker.com/engine/admin/logging/overview/#json-file for full details.

Example Usage:

jsonLogs: ECS.LogConfiguration.jsonFile {
  maxSize: "10m",
  maxFile: 3,
}

Type Signature

 fun { maxSize: Optional<String>,
       maxFile: Optional<Int> } -> LogConfiguration
Argument: maxSize

The maximum size of the log before it is rotated. Must be a positive integer with unit suffix (k, m, or g).

Type: Optional<String>

Argument: maxFile

The maximum number of log files to keep. The oldest files will be removed when rotating. Requires maxSize to be specified.

Type: Optional<Int>

Returns:

An LogConfiguration using the json-file logging driver.

Type: LogConfiguration

syslog

(Function)

Setup the syslog logging driver for Docker.

See https://docs.docker.com/engine/admin/logging/overview/#json-file for full details.

Example Usage:

syslog: ECS.LogConfiguration.syslog {
  syslogAddress: "tcp://192.168.0.42:123",
  syslogFacility: "daemon",
}

syslogWithTls: ECS.LogConfiguration.syslog {
  syslogAddress: "tcp+tls://192.168.0.42:123",
  syslogTlsCaCert: "/etc/ca-certificates/custom/ca.pem",
  syslogTlsCert: "/etc/ca-certificates/custom/cert.pem",
  syslogTlsKey: "/etc/ca-certificates/custom/key.pem",
}

Type Signature

 fun { syslogAddress: Optional<String>,
       syslogFacility: Optional<String>,
       syslogTlsCaCert: Optional<String>,
       syslogTlsCert: Optional<String>,
       syslogTlsKey: Optional<String>,
       syslogTlsSkipVerify: Optional<Bool>,
       tag: Optional<String>,
       syslogFormat: Optional<String> } -> LogConfiguration
Argument: syslogAddress
Type: Optional<String>
Argument: syslogFacility
Type: Optional<String>
Argument: syslogTlsCaCert
Type: Optional<String>
Argument: syslogTlsCert
Type: Optional<String>
Argument: syslogTlsKey
Type: Optional<String>
Argument: syslogTlsSkipVerify
Type: Optional<Bool>
Argument: tag
Type: Optional<String>
Argument: syslogFormat
Type: Optional<String>
Returns:
Type: LogConfiguration