interface LoggerProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Greengrass.Mixins.CfnLoggerDefinitionVersionPropsMixin.LoggerProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgreengrass/mixins#CfnLoggerDefinitionVersionPropsMixin_LoggerProperty |
Java | software.amazon.awscdk.mixins.preview.services.greengrass.mixins.CfnLoggerDefinitionVersionPropsMixin.LoggerProperty |
Python | aws_cdk.mixins_preview.aws_greengrass.mixins.CfnLoggerDefinitionVersionPropsMixin.LoggerProperty |
TypeScript | @aws-cdk/mixins-preview » aws_greengrass » mixins » CfnLoggerDefinitionVersionPropsMixin » LoggerProperty |
A logger represents logging settings for the AWS IoT Greengrass group, which can be stored in CloudWatch and the local file system of your core device.
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 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 { mixins as greengrass_mixins } from '@aws-cdk/mixins-preview/aws-greengrass';
const loggerProperty: greengrass_mixins.CfnLoggerDefinitionVersionPropsMixin.LoggerProperty = {
component: 'component',
id: 'id',
level: 'level',
space: 123,
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| component? | string | The source of the log event. |
| id? | string | A descriptive or arbitrary ID for the logger. |
| level? | string | The log-level threshold. |
| space? | number | The amount of file space (in KB) to use when writing logs to the local file system. |
| type? | string | The storage mechanism for log events. |
component?
Type:
string
(optional)
The source of the log event.
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.
id?
Type:
string
(optional)
A descriptive or arbitrary ID for the logger.
This value must be unique within the logger definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .
level?
Type:
string
(optional)
The log-level threshold.
Log events below this threshold are filtered out and aren't stored. Valid values are DEBUG , INFO (recommended), WARN , ERROR , or FATAL .
space?
Type:
number
(optional)
The amount of file space (in KB) to use when writing logs to the local file system.
This property does not apply for CloudWatch Logs .
type?
Type:
string
(optional)
The storage mechanism for log events.
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.

.NET
Go
Java
Python
TypeScript