Simple example explaining the basics of CloudWatch Logs.
func createLogStream() error {
name := uuid.New().String()
_, err := cwl.CreateLogStream(&cloudwatchlogs.CreateLogStreamInput{
LogGroupName: &logGroupName,
LogStreamName: &name,
})
logStreamName = name
return err
}
Find the Cloudwatch Logs Documentation here.