Skip to content

LogOptions Struct ​

Defines what execution history events are logged and where they are logged.

Initializer ​

ts
import { LogOptions } from '@cloudsnorkel/cdk-github-runners'

const logOptions: LogOptions = { ... }
python
import cloudsnorkel.cdk_github_runners

cloudsnorkel.cdk_github_runners.LogOptions(
  include_execution_data: bool = None,
  level: LogLevel = None,
  log_group_name: str = None,
  log_retention: RetentionDays = None
)
java
import com.cloudsnorkel.cdk.github.runners.LogOptions;

LogOptions.builder()
//  .includeExecutionData(java.lang.Boolean)
//  .level(LogLevel)
//  .logGroupName(java.lang.String)
//  .logRetention(RetentionDays)
    .build();
csharp
using CloudSnorkel;

new LogOptions {
    bool IncludeExecutionData = null,
    LogLevel Level = null,
    string LogGroupName = null,
    RetentionDays LogRetention = null
};
go
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"

&cloudsnorkelcdkgithubrunners.LogOptions {
	IncludeExecutionData: *bool,
	Level: github.com/aws/aws-cdk-go/awscdk/v2.aws_stepfunctions.LogLevel,
	LogGroupName: *string,
	LogRetention: github.com/aws/aws-cdk-go/awscdk/v2.aws_logs.RetentionDays,
}

Properties ​

includeExecutionDatainclude_execution_dataincludeExecutionDataIncludeExecutionDataIncludeExecutionData ​

includeExecutionData?: boolean

include_execution_data?: bool

includeExecutionData?: java.lang.Boolean

IncludeExecutionData?: bool

IncludeExecutionData?: *bool

Determines whether execution data is included in your log.

Default: true

levellevellevelLevelLevel ​

level?: LogLevel

level?: LogLevel

level?: LogLevel

Level?: LogLevel

Level?: LogLevel

Defines which category of execution history events are logged.

Default: ALL

logGroupNamelog_group_namelogGroupNameLogGroupNameLogGroupName ​

logGroupName?: string

log_group_name?: str

logGroupName?: java.lang.String

LogGroupName?: string

LogGroupName?: *string

The log group where the execution history events will be logged.

logRetentionlog_retentionlogRetentionLogRetentionLogRetention ​

logRetention?: RetentionDays

log_retention?: RetentionDays

logRetention?: RetentionDays

LogRetention?: RetentionDays

LogRetention?: RetentionDays

The number of days log events are kept in CloudWatch Logs.

When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to INFINITE.

Default: logs.RetentionDays.ONE_MONTH

Released under the Apache-2.0 License.