Class LogOptions
Defines what execution history events are logged and where they are logged.
Inheritance
System.Object
LogOptions
Implements
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LogOptions : Object, ILogOptions
Syntax (vb)
Public Class LogOptions
Inherits Object
Implements 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
Constructors
LogOptions() |
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. |
Constructors
LogOptions()
public LogOptions()
Properties
Destination
The log group where the execution history events will be logged.
public ILogGroup Destination { get; set; }
Property Value
IncludeExecutionData
Determines whether execution data is included in your log.
public Nullable<bool> IncludeExecutionData { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Level
Defines which category of execution history events are logged.
public Nullable<LogLevel> Level { get; set; }
Property Value
System.Nullable<LogLevel>
Remarks
Default: ERROR