Interface CfnLoggerDefinition.LoggerProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoggerDefinition.LoggerProperty.Jsii$Proxy
- Enclosing class:
CfnLoggerDefinition
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 LoggerDefinitionVersion
property type 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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLoggerDefinition.LoggerProperty
static final class
An implementation forCfnLoggerDefinition.LoggerProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The source of the log event.getId()
A descriptive or arbitrary ID for the logger.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.getType()
The storage mechanism for log events.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComponent
The source of the log event.Valid values are
GreengrassSystem
orLambda
. WhenGreengrassSystem
is used, events from Greengrass system components are logged. WhenLambda
is used, events from user-defined Lambda functions are logged.- See Also:
-
getId
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:_-]+
.- See Also:
-
getLevel
The log-level threshold.Log events below this threshold are filtered out and aren't stored. Valid values are
DEBUG
,INFO
(recommended),WARN
,ERROR
, orFATAL
.- See Also:
-
getType
The storage mechanism for log events.Valid values are
FileSystem
orAWSCloudWatch
. WhenAWSCloudWatch
is used, log events are sent to CloudWatch Logs . WhenFileSystem
is used, log events are stored on the local file system.- See Also:
-
getSpace
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 .
- See Also:
-
builder
-