INNER CODE UNIT · Go
msg
lucagrulla/cw · main.go:129
msg = f.jmespathQuery(msg, *f.FormatConfig.Query)
}
if f.FormatConfig.PrintEventID {
msg = fmt.Sprintf("%s - %s", color.YellowString(*ev.logEvent.EventId), msg)
}
if f.FormatConfig.PrintStreamName {
msg = fmt.Sprintf("%s - %s", color.BlueString(*ev.logEvent.LogStreamName), msg)
}
if f.FormatConfig.PrintGroupName {
msg = fmt.Sprintf("%s - %s", color.CyanString(ev.logGroup), msg)
}
if f.FormatConfig.PrintTime {
eventTimestamp := *ev.logEvent.Timestamp / 1000
ts := time.Unix(eventTimestamp, 0).Format(timeFormat)
msg = fmt.Sprintf("%s - %s", color.GreenString(ts), msg)