Skip to content

Commit

Permalink
Add addtional time and level field
Browse files Browse the repository at this point in the history
  • Loading branch information
morbidick authored Feb 4, 2020
1 parent 67fe215 commit 5b78f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ func checkEachUntilFound(fieldList []string, found func(string) bool) bool {
}

// supportedTimeFields enumerates supported timestamp field names
var supportedTimeFields = []string{"time", "ts", "@timestamp"}
var supportedTimeFields = []string{"time", "ts", "@timestamp", "timestamp"}

// supportedMessageFields enumarates supported Message field names
var supportedMessageFields = []string{"message", "msg"}

// supportedLevelFields enumarates supported level field names
var supportedLevelFields = []string{"level", "lvl"}
var supportedLevelFields = []string{"level", "lvl", "loglevel"}

func (h *JSONHandler) clear() {
h.Level = ""
Expand Down

0 comments on commit 5b78f79

Please sign in to comment.