SystemLogLevel Enum
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.
Example
ts
import { ILogGroup } from 'aws-cdk-lib/aws-logs';
declare const logGroup: ILogGroup;
new lambda.Function(this, 'Lambda', {
code: new lambda.InlineCode('foo'),
handler: 'index.handler',
runtime: lambda.Runtime.NODEJS_LATEST,
loggingFormat: lambda.LoggingFormat.JSON,
systemLogLevelV2: lambda.SystemLogLevel.INFO,
applicationLogLevelV2: lambda.ApplicationLogLevel.INFO,
logGroup: logGroup,
});
Members
| Member | Description |
|---|---|
INFO | Lambda will capture only logs at info level. |
DEBUG | Lambda will capture only logs at debug level. |
WARN | Lambda will capture only logs at warn level. |
Referenced by
CapacityProviderProps.systemLogLevelsystem_log_levelsystemLogLevelSystemLogLevelSystemLogLevelFunctionOptions.systemLogLevelV2system_log_level_v2systemLogLevelV2SystemLogLevelV2SystemLogLevelV2