Struct aws_sdk_lambda::types::LoggingConfig
source · #[non_exhaustive]pub struct LoggingConfig {
pub log_format: Option<LogFormat>,
pub application_log_level: Option<ApplicationLogLevel>,
pub system_log_level: Option<SystemLogLevel>,
pub log_group: Option<String>,
}
Expand description
The function's Amazon CloudWatch Logs configuration settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.log_format: Option<LogFormat>
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
application_log_level: Option<ApplicationLogLevel>
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE
is the highest level and FATAL
is the lowest.
system_log_level: Option<SystemLogLevel>
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG
is the highest level and WARN
is the lowest.
log_group: Option<String>
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named /aws/lambda/
. To use a different log group, enter an existing log group or enter a new log group name.
Implementations§
source§impl LoggingConfig
impl LoggingConfig
sourcepub fn log_format(&self) -> Option<&LogFormat>
pub fn log_format(&self) -> Option<&LogFormat>
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
sourcepub fn application_log_level(&self) -> Option<&ApplicationLogLevel>
pub fn application_log_level(&self) -> Option<&ApplicationLogLevel>
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where TRACE
is the highest level and FATAL
is the lowest.
sourcepub fn system_log_level(&self) -> Option<&SystemLogLevel>
pub fn system_log_level(&self) -> Option<&SystemLogLevel>
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where DEBUG
is the highest level and WARN
is the lowest.
source§impl LoggingConfig
impl LoggingConfig
sourcepub fn builder() -> LoggingConfigBuilder
pub fn builder() -> LoggingConfigBuilder
Creates a new builder-style object to manufacture LoggingConfig
.
Trait Implementations§
source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoggingConfig
impl Debug for LoggingConfig
source§impl PartialEq for LoggingConfig
impl PartialEq for LoggingConfig
source§fn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.