Class 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.
Inheritance
System.Object
SystemLogLevel
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class SystemLogLevel : Enum
Syntax (vb)
Public NotInheritable Class SystemLogLevel
Inherits
Enum
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. |
value__ | |
WARN | Lambda will capture only logs at warn level. |
Fields
DEBUG
Lambda will capture only logs at debug level.
public const SystemLogLevel DEBUG
Field Value
Type | Description |
---|---|
SystemLogLevel |
INFO
Lambda will capture only logs at info level.
public const SystemLogLevel INFO
Field Value
Type | Description |
---|---|
SystemLogLevel |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
WARN
Lambda will capture only logs at warn level.
public const SystemLogLevel WARN
Field Value
Type | Description |
---|---|
SystemLogLevel |