aws-cdk-lib.aws_stepfunctions.LogLevel

enum LogLevel

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.LogLevel
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#LogLevel
Javasoftware.amazon.awscdk.services.stepfunctions.LogLevel
Pythonaws_cdk.aws_stepfunctions.LogLevel
TypeScript (source)aws-cdk-lib » aws_stepfunctions » LogLevel

Defines which category of execution history events are logged.

See also: https://docs.aws.amazon.com/step-functions/latest/dg/cloudwatch-log-level.html

Example

import * as logs from 'aws-cdk-lib/aws-logs';

const logGroup = new logs.LogGroup(this, 'MyLogGroup');

new sfn.StateMachine(this, 'MyStateMachine', {
  definition: sfn.Chain.start(new sfn.Pass(this, 'Pass')),
  logs: {
    destination: logGroup,
    level: sfn.LogLevel.ALL,
  },
});

Members

NameDescription
OFFNo Logging.
ALLLog everything.
ERRORLog all errors.
FATALLog fatal errors.

OFF

No Logging.


ALL

Log everything.


ERROR

Log all errors.


FATAL

Log fatal errors.