Skip to content

Not send to graylog #53

@vsokolovsky555

Description

@vsokolovsky555

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,
			}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions