INNER CODE UNIT · Go

msg

lucagrulla/cw · main.go:126

	msg := *ev.logEvent.Message

	if f.FormatConfig.Query != nil {
		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 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…