From a5b005e5592f0f6eb03b8a842e6494dfe5ff9963 Mon Sep 17 00:00:00 2001 From: Sebastian Estrella <2049686+sestrella@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:15:56 -0500 Subject: [PATCH] Log timestamp --- cmd/logs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/logs.go b/cmd/logs.go index 4186299..f8e2fb4 100644 --- a/cmd/logs.go +++ b/cmd/logs.go @@ -77,7 +77,8 @@ var logsCmd = &cobra.Command{ log.Println("Received SessionStart event") case *cwlogsTypes.StartLiveTailResponseStreamMemberSessionUpdate: for _, logEvent := range e.Value.SessionResults { - log.Println(*logEvent.Message) + // TODO: format timestamp as datetime + fmt.Printf("%v %s\n", *logEvent.Timestamp, *logEvent.Message) } default: fmt.Println("TODO")