Interface IJsonFileLogDriverProps
Specifies the json-file log driver configuration options.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IJsonFileLogDriverProps : IBaseLogDriverProps
Syntax (vb)
Public Interface IJsonFileLogDriverProps
Inherits 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 jsonFileLogDriverProps = new JsonFileLogDriverProps {
Compress = false,
Env = new [] { "env" },
EnvRegex = "envRegex",
Labels = new [] { "labels" },
MaxFile = 123,
MaxSize = "maxSize",
Tag = "tag"
};
Synopsis
Properties
Compress | Toggles compression for rotated logs. |
MaxFile | The maximum number of log files that can be present. |
MaxSize | The maximum size of the log before it is rolled. |
Properties
Compress
Toggles compression for rotated logs.
virtual Nullable<bool> Compress { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: - false
MaxFile
The maximum number of log files that can be present.
virtual Nullable<double> MaxFile { get; }
Property Value
System.Nullable<System.Double>
Remarks
If rolling the logs creates excess files, the oldest file is removed. Only effective when max-size is also set. A positive integer.
Default: - 1
MaxSize
The maximum size of the log before it is rolled.
virtual string MaxSize { get; }
Property Value
System.String
Remarks
A positive integer plus a modifier representing the unit of measure (k, m, or g).
Default: - -1 (unlimited)