Interface CfnVirtualGateway.IVirtualGatewayFileAccessLogProperty
An object that represents an access log file.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IVirtualGatewayFileAccessLogProperty
Syntax (vb)
Public Interface IVirtualGatewayFileAccessLogProperty
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.AppMesh;
var virtualGatewayFileAccessLogProperty = new VirtualGatewayFileAccessLogProperty {
Path = "path",
// the properties below are optional
Format = new LoggingFormatProperty {
Json = new [] { new JsonFormatRefProperty {
Key = "key",
Value = "value"
} },
Text = "text"
}
};
Synopsis
Properties
Format | The specified format for the virtual gateway access logs. |
Path | The file path to write access logs to. |
Properties
Format
The specified format for the virtual gateway access logs.
virtual object Format { get; }
Property Value
System.
Remarks
It can be either json_format
or text_format
.
Path
The file path to write access logs to.
string Path { get; }
Property Value
System.
Remarks
You can use /dev/stdout
to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs
, to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.