Class CfnVirtualNode.FileAccessLogProperty
An object that represents an access log file.
Inheritance
System.Object
CfnVirtualNode.FileAccessLogProperty
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FileAccessLogProperty : Object, CfnVirtualNode.IFileAccessLogProperty
Syntax (vb)
Public Class FileAccessLogProperty
Inherits Object
Implements 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
Constructors
FileAccessLogProperty() |
Properties
Format | The specified format for the logs. |
Path | The file path to write access logs to. |
Constructors
FileAccessLogProperty()
public FileAccessLogProperty()
Properties
Format
The specified format for the logs.
public object Format { get; set; }
Property Value
System.Object
Remarks
The format is either json_format
or text_format
.
Path
The file path to write access logs to.
public string Path { get; set; }
Property Value
System.String
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.