@Stability(value=Stable)
public static interface CfnLoggerDefinitionVersion.LoggerProperty
extends software.amazon.jsii.JsiiSerializable
All log entries include a timestamp, log level, and information about the event. For more information, see Monitoring with AWS IoT Greengrass Logs in the Developer Guide .
In an AWS CloudFormation template, the Loggers property of the AWS::Greengrass::LoggerDefinitionVersion resource contains a list of Logger property types.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
LoggerProperty loggerProperty = LoggerProperty.builder()
.component("component")
.id("id")
.level("level")
.type("type")
// the properties below are optional
.space(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLoggerDefinitionVersion.LoggerProperty.Builder
A builder for
CfnLoggerDefinitionVersion.LoggerProperty |
static class |
CfnLoggerDefinitionVersion.LoggerProperty.Jsii$Proxy
An implementation for
CfnLoggerDefinitionVersion.LoggerProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLoggerDefinitionVersion.LoggerProperty.Builder |
builder() |
String |
getComponent()
The source of the log event.
|
String |
getId()
A descriptive or arbitrary ID for the logger.
|
String |
getLevel()
The log-level threshold.
|
default Number |
getSpace()
The amount of file space (in KB) to use when writing logs to the local file system.
|
String |
getType()
The storage mechanism for log events.
|
@Stability(value=Stable) @NotNull String getComponent()
Valid values are GreengrassSystem or Lambda . When GreengrassSystem is used, events from Greengrass system components are logged. When Lambda is used, events from user-defined Lambda functions are logged.
@Stability(value=Stable) @NotNull String getId()
This value must be unique within the logger definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .
@Stability(value=Stable) @NotNull String getLevel()
Log events below this threshold are filtered out and aren't stored. Valid values are DEBUG , INFO (recommended), WARN , ERROR , or FATAL .
@Stability(value=Stable) @NotNull String getType()
Valid values are FileSystem or AWSCloudWatch . When AWSCloudWatch is used, log events are sent to CloudWatch Logs . When FileSystem is used, log events are stored on the local file system.
@Stability(value=Stable) @Nullable default Number getSpace()
This property does not apply for CloudWatch Logs .
@Stability(value=Stable) static CfnLoggerDefinitionVersion.LoggerProperty.Builder builder()
Copyright © 2022. All rights reserved.