Interface LogOptions
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- LogOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:49.420Z")
@Stability(Stable)
public interface LogOptions
extends software.amazon.jsii.JsiiSerializable
Defines what execution history events are logged and where they are logged.
 
Example:
 import software.amazon.awscdk.services.logs.*;
 LogGroup logGroup = new LogGroup(this, "MyLogGroup");
 Chain definition = Chain.start(new Pass(this, "Pass"));
 StateMachine.Builder.create(this, "MyStateMachine")
         .definitionBody(DefinitionBody.fromChainable(definition))
         .logs(LogOptions.builder()
                 .destination(logGroup)
                 .level(LogLevel.ALL)
                 .build())
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLogOptionsstatic final classAn implementation forLogOptions
- 
Method SummaryModifier and TypeMethodDescriptionstatic LogOptions.Builderbuilder()default ILogGroupThe log group where the execution history events will be logged.default BooleanDetermines whether execution data is included in your log.default LogLevelgetLevel()Defines which category of execution history events are logged.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getDestinationThe log group where the execution history events will be logged.Default: No log group. Required if your log level is not set to OFF. 
- 
getIncludeExecutionDataDetermines whether execution data is included in your log.Default: false 
- 
getLevelDefines which category of execution history events are logged.Default: ERROR 
- 
builder- Returns:
- a LogOptions.BuilderofLogOptions
 
 
-