During the development of a Spring Boot application, we need logging for debugging the application. Therefore, we will use CloudWatch Log Groups.
To create a log group, first initialize an AwsLogDriver object within the constructor:
AwsLogDriver logDriver = new AwsLogDriver(AwsLogDriverProps.builder()
.build());

.logGroup(new LogGroup(this, "LogGroup",
LogGroupProps.builder()
.build()))

.logGroupName("ProductsService")
.removalPolicy(RemovalPolicy.DESTROY)
.retention(RetentionDays.ONE_MONTH)

.streamPrefix("ProductsService")
