Skip to content

Default logger doesn't print log level. #1649

@arvenil

Description

@arvenil

Issue Description

I'm using middleware.Logger() and sometimes in the app log.Error() or log.Info(). The middleware.Logger() however never prints a log level for requests. Shouldn't this be like always "INFO"? This is annoying as it's harder to parse all logs in splunk. Is there any easy workaround?

{"time":"2020-10-02T16:16:37.427169+02:00","id":"","remote_ip":"127.0.0.1","host":"localhost:6601","method":"GET","uri":"/healthcheck","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":6002259,"latency_human":"6.002259ms","bytes_in":0,"bytes_out":3}
{"time":"2020-10-02T16:16:37.427275+02:00","level":"INFO","prefix":"-","file":"app.go","line":"40","message":"shutdown"}

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