Interface LogOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LogOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:27.730Z") @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();
 
  • Method Details

    • getDestination

      @Stability(Stable) @NotNull ILogGroup getDestination()
      The log group where the execution history events will be logged.
    • getIncludeExecutionData

      @Stability(Stable) @Nullable default Boolean getIncludeExecutionData()
      Determines whether execution data is included in your log.

      Default: false

    • getLevel

      @Stability(Stable) @Nullable default LogLevel getLevel()
      Defines which category of execution history events are logged.

      Default: ERROR

    • builder

      @Stability(Stable) static LogOptions.Builder builder()
      Returns:
      a LogOptions.Builder of LogOptions