This is a fork of this library which allows treating CloudWatch Log streams as io.WriterClosers
and io.Readers
.
session := session.Must(session.NewSession(nil))
group := NewGroup(cloudwatchlogs.New(session), "groupName")
w, err := group.Create("streamName")
io.WriteString(w, "Hello World")
r, err := group.Open("streamName")
io.Copy(os.Stdout, r)
This library depends on aws-sdk-go.