Skip to content

Commit

Permalink
Merge pull request #32 from morbidick/patch-1
Browse files Browse the repository at this point in the history
Add addtional time and level field
  • Loading branch information
aybabtme authored Feb 4, 2020
2 parents 67fe215 + 5b78f79 commit e35321a
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 e35321a

Please sign in to comment.