Enum SystemLogLevel
Lambda service will automatically captures system logs about function invocation generated by the Lambda service (known as system logs) and sends these logs to a default CloudWatch log group named after the Lambda function.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum SystemLogLevel
Syntax (vb)
Public Enum SystemLogLevel
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
ILogGroup logGroup;
new Function(this, "Lambda", new FunctionProps {
Code = new InlineCode("foo"),
Handler = "index.handler",
Runtime = Runtime.NODEJS_18_X,
LoggingFormat = LoggingFormat.JSON,
SystemLogLevelV2 = SystemLogLevel.INFO,
ApplicationLogLevelV2 = ApplicationLogLevel.INFO,
LogGroup = logGroup
});
Synopsis
Fields
DEBUG | Lambda will capture only logs at debug level. |
INFO | Lambda will capture only logs at info level. |
WARN | Lambda will capture only logs at warn level. |
Fields
Name | Description |
---|---|
DEBUG | Lambda will capture only logs at debug level. |
INFO | Lambda will capture only logs at info level. |
WARN | Lambda will capture only logs at warn level. |