Struct aws_sdk_greengrass::types::Logger
source · #[non_exhaustive]pub struct Logger {
pub component: Option<LoggerComponent>,
pub id: Option<String>,
pub level: Option<LoggerLevel>,
pub space: Option<i32>,
pub type: Option<LoggerType>,
}Expand description
Information about a logger
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.component: Option<LoggerComponent>The component that will be subject to logging.
id: Option<String>A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ‘’[a-zA-Z0-9:_-]+‘’.
level: Option<LoggerLevel>The level of the logs.
space: Option<i32>The amount of file space, in KB, to use if the local file system is used for logging purposes.
type: Option<LoggerType>The type of log output which will be used.
Implementations§
source§impl Logger
impl Logger
sourcepub fn component(&self) -> Option<&LoggerComponent>
pub fn component(&self) -> Option<&LoggerComponent>
The component that will be subject to logging.
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ‘’[a-zA-Z0-9:_-]+‘’.
sourcepub fn level(&self) -> Option<&LoggerLevel>
pub fn level(&self) -> Option<&LoggerLevel>
The level of the logs.
sourcepub fn space(&self) -> Option<i32>
pub fn space(&self) -> Option<i32>
The amount of file space, in KB, to use if the local file system is used for logging purposes.
sourcepub fn type(&self) -> Option<&LoggerType>
pub fn type(&self) -> Option<&LoggerType>
The type of log output which will be used.