LogOptions(*, destination, include_execution_data=None, level=None)¶
Defines what execution history events are logged and where they are logged.
ILogGroup) – The log group where the execution history events will be logged.
bool]) – Determines whether execution data is included in your log. Default: true
LogLevel]) – Defines which category of execution history events are logged. Default: ERROR
import aws_cdk.aws_logs as logs log_group = logs.LogGroup(self, "MyLogGroup") sfn.StateMachine(self, "MyStateMachine", definition=sfn.Chain.start(sfn.Pass(self, "Pass")), logs=sfn.LogOptions( destination=log_group, level=sfn.LogLevel.ALL ) )
Determines whether execution data is included in your log.
- Return type