Interface ILogOptions
Defines what execution history events are logged and where they are logged.
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILogOptions
Syntax (vb)
Public Interface ILogOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
var logGroup = new LogGroup(this, "MyLogGroup");
var definition = Chain.Start(new Pass(this, "Pass"));
new StateMachine(this, "MyStateMachine", new StateMachineProps {
DefinitionBody = DefinitionBody.FromChainable(definition),
Logs = new LogOptions {
Destination = logGroup,
Level = LogLevel.ALL
}
});
Synopsis
Properties
Destination | The log group where the execution history events will be logged. |
IncludeExecutionData | Determines whether execution data is included in your log. |
Level | Defines which category of execution history events are logged. |
Properties
Destination
The log group where the execution history events will be logged.
ILogGroup? Destination { get; }
Property Value
Remarks
Default: No log group. Required if your log level is not set to OFF.
IncludeExecutionData
Determines whether execution data is included in your log.
bool? IncludeExecutionData { get; }
Property Value
bool?
Remarks
Default: false
Level
Defines which category of execution history events are logged.
LogLevel? Level { get; }
Property Value
Remarks
Default: ERROR