gemnasium / logrus-graylog-hook

Graylog hook for logrus
MIT License
86 stars 63 forks source link

Not send to graylog #53

Open vsokolovsky555 opened 3 years ago

vsokolovsky555 commented 3 years ago

Not send to graylog if field name = duration Like this:

logFields := map[string]interface{}{
                "method":       r.Method,
                "url":          r.URL.Path + "?" + r.URL.RawQuery,
                "duration":    fmt.Sprintf("%f seconds", time.Since(startTime).Seconds()),
                "datetime":     startTime,
            }
gravis commented 3 years ago

I don't see why it would not log when a "duration" field is used.
Are you saying the field is not logged? Nothing is sent to Graylog? Do you have anything in the logs?
It's a bit hard to figure out what's going on there without more details.

thanks