Skip to content
v2.273.0

LogLevel Enum ​

Defines which category of execution history events are logged.

Example ​

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

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

const definition = sfn.Chain.start(new sfn.Pass(this, 'Pass'));

new sfn.StateMachine(this, 'MyStateMachine', {
  definitionBody: sfn.DefinitionBody.fromChainable(definition),
  logs: {
    destination: logGroup,
    level: sfn.LogLevel.ALL,
  },
});

Members ​

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

Referenced by ​