Interface CfnVirtualNode.IFileAccessLogProperty
An object that represents an access log file.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnVirtualNode.IFileAccessLogProperty
Syntax (vb)
Public Interface CfnVirtualNode.IFileAccessLogProperty
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 fileAccessLogProperty = new FileAccessLogProperty {
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 logs. |
| Path | The file path to write access logs to. |
Properties
Format
The specified format for the logs.
object? Format { get; }
Property Value
Remarks
The format is either json_format or text_format .
Type union: either IResolvable or CfnVirtualNode.ILoggingFormatProperty
Path
The file path to write access logs to.
string Path { get; }
Property Value
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.
The Envoy process must have write permissions to the path that you specify here. Otherwise, Envoy fails to bootstrap properly.