Interface CfnFunction.LoggingConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunction.LoggingConfigProperty.Jsii$Proxy
- Enclosing class:
CfnFunction
@Stability(Stable)
public static interface CfnFunction.LoggingConfigProperty
extends software.amazon.jsii.JsiiSerializable
The function's Amazon CloudWatch Logs configuration settings.
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.lambda.*;
LoggingConfigProperty loggingConfigProperty = LoggingConfigProperty.builder()
.applicationLogLevel("applicationLogLevel")
.logFormat("logFormat")
.logGroup("logGroup")
.systemLogLevel("systemLogLevel")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunction.LoggingConfigPropertystatic final classAn implementation forCfnFunction.LoggingConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringSet this property to filter the application logs for your function that Lambda sends to CloudWatch.default StringThe format in which Lambda sends your function's application and system logs to CloudWatch.default StringThe name of the Amazon CloudWatch log group the function sends logs to.default StringSet this property to filter the system logs for your function that Lambda sends to CloudWatch.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplicationLogLevel
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
TRACEis the highest level andFATALis the lowest.- See Also:
-
getLogFormat
The format in which Lambda sends your function's application and system logs to CloudWatch.Select between plain text and structured JSON.
- See Also:
-
getLogGroup
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/<function name>. To use a different log group, enter an existing log group or enter a new log group name.- See Also:
-
getSystemLogLevel
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
DEBUGis the highest level andWARNis the lowest.- See Also:
-
builder
-