pub struct Builder { /* private fields */ }
Expand description
A builder for VirtualGatewayFileAccessLog
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The file path to write access logs to. 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.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The file path to write access logs to. 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.
sourcepub fn format(self, input: LoggingFormat) -> Self
pub fn format(self, input: LoggingFormat) -> Self
The specified format for the virtual gateway access logs. It can be either json_format
or text_format
.
sourcepub fn set_format(self, input: Option<LoggingFormat>) -> Self
pub fn set_format(self, input: Option<LoggingFormat>) -> Self
The specified format for the virtual gateway access logs. It can be either json_format
or text_format
.
sourcepub fn build(self) -> VirtualGatewayFileAccessLog
pub fn build(self) -> VirtualGatewayFileAccessLog
Consumes the builder and constructs a VirtualGatewayFileAccessLog
.