Class CfnFunctionPropsMixin.LoggingConfigProperty
The function's Amazon CloudWatch Logs configuration settings.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnFunctionPropsMixin.LoggingConfigProperty : CfnFunctionPropsMixin.ILoggingConfigProperty
Syntax (vb)
Public Class CfnFunctionPropsMixin.LoggingConfigProperty Implements CfnFunctionPropsMixin.ILoggingConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins;
var loggingConfigProperty = new LoggingConfigProperty {
ApplicationLogLevel = "applicationLogLevel",
LogFormat = "logFormat",
LogGroup = "logGroup",
SystemLogLevel = "systemLogLevel"
};
Synopsis
Constructors
| LoggingConfigProperty() | The function's Amazon CloudWatch Logs configuration settings. |
Properties
| ApplicationLogLevel | Set this property to filter the application logs for your function that Lambda sends to CloudWatch. |
| LogFormat | The format in which Lambda sends your function's application and system logs to CloudWatch. |
| LogGroup | The name of the Amazon CloudWatch log group the function sends logs to. |
| SystemLogLevel | Set this property to filter the system logs for your function that Lambda sends to CloudWatch. |
Constructors
LoggingConfigProperty()
The function's Amazon CloudWatch Logs configuration settings.
public LoggingConfigProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins;
var loggingConfigProperty = new LoggingConfigProperty {
ApplicationLogLevel = "applicationLogLevel",
LogFormat = "logFormat",
LogGroup = "logGroup",
SystemLogLevel = "systemLogLevel"
};
Properties
ApplicationLogLevel
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
public string? ApplicationLogLevel { get; set; }
Property Value
Remarks
Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.
LogFormat
The format in which Lambda sends your function's application and system logs to CloudWatch.
public string? LogFormat { get; set; }
Property Value
Remarks
Select between plain text and structured JSON.
LogGroup
The name of the Amazon CloudWatch log group the function sends logs to.
public string? LogGroup { get; set; }
Property Value
Remarks
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.
SystemLogLevel
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
public string? SystemLogLevel { get; set; }
Property Value
Remarks
Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.