enum LogLevel
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.LogLevel |
Java | software.amazon.awscdk.services.stepfunctions.LogLevel |
Python | aws_cdk.aws_stepfunctions.LogLevel |
TypeScript (source) | @aws-cdk/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/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
Name | Description |
---|---|
OFF | No Logging. |
ALL | Log everything. |
ERROR | Log all errors. |
FATAL | Log fatal errors. |
OFF
No Logging.
ALL
Log everything.
ERROR
Log all errors.
FATAL
Log fatal errors.