Skip to content

Commit

Permalink
log struct for loki
Browse files Browse the repository at this point in the history
  • Loading branch information
sealbro committed May 29, 2022
1 parent 5427652 commit 1c43b10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ func Fatal(message string) {
}

type LogEvent struct {
Timestamp string `json:"@t"`
Level string `json:"@l"`
Source string `json:"@s"`
Message string `json:"@m"`
Timestamp string `json:"ts"`
Level string `json:"level"`
Source string `json:"source"`
Message string `json:"message"`
}

func Printf(level string, format string, v ...interface{}) {
Expand Down

0 comments on commit 1c43b10

Please sign in to comment.