bearslyricattack commented on code in PR #7:
URL: https://github.com/apache/incubator-seata-ctl/pull/7#discussion_r1811075201
##########
action/log/log.go:
##########
@@ -0,0 +1,180 @@
+package log
+
+import (
+ "fmt"
+ "github.com/seata/seata-ctl/action/log/utils"
+ "github.com/seata/seata-ctl/action/log/utils/impl"
+ "github.com/seata/seata-ctl/model"
+ "github.com/spf13/cobra"
+ "gopkg.in/yaml.v3"
+ "log"
+ "os"
+)
+
+const (
+ ElasticSearchType = "ElasticSearch"
+ DefaultNumber = 10
+)
+const (
+ LokiType = "Loki"
+)
+
+var LogCmd = &cobra.Command{
+ Use: "log",
+ Short: "get seata log",
+ Run: func(cmd *cobra.Command, args []string) {
+ err := getLog()
+ if err != nil {
+ fmt.Println(err)
+ }
+ },
+}
+
+// ElasticSearch
+
+var LogLevel string
+var Module string
+var XID string
+var BranchID string
+var ResourceID string
+var Message string
+var Number int
+
+// Loki
+
+var Label string
+var Start string
+var End string
Review Comment:
Corrected
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]