Class LoggingOptions
Information about logs for the build project.
Inheritance
System.Object
LoggingOptions
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.AWS.CodeBuild.dll
Syntax (csharp)
public class LoggingOptions : Object, ILoggingOptions
Syntax (vb)
Public Class LoggingOptions
Inherits Object
Implements ILoggingOptions
Remarks
A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.
ExampleMetadata: infused
Examples
new Project(this, "Project", new ProjectProps {
Logging = new LoggingOptions {
CloudWatch = new CloudWatchLoggingOptions {
LogGroup = new LogGroup(this, "MyLogGroup")
}
}
});
Synopsis
Constructors
LoggingOptions() |
Properties
CloudWatch | Information about Amazon CloudWatch Logs for a build project. |
S3 | Information about logs built to an S3 bucket for a build project. |
Constructors
LoggingOptions()
public LoggingOptions()
Properties
CloudWatch
Information about Amazon CloudWatch Logs for a build project.
public ICloudWatchLoggingOptions CloudWatch { get; set; }
Property Value
Remarks
Default: - enabled
S3
Information about logs built to an S3 bucket for a build project.
public IS3LoggingOptions S3 { get; set; }
Property Value
Remarks
Default: - disabled