sirupsen / logrus

Structured, pluggable logging for Go.
MIT License
24.72k stars 2.27k forks source link

TextFormatter uses hard-coded logfmt field keys #765

Closed neilisaac closed 6 years ago

neilisaac commented 6 years ago

Some logging services (ex. LogDNA) parse specific field names (ex. "message" and "level") so it would be very useful to configure the logfmt formatter to use specific keys, similar to the json formatter.

Proposed fix in https://github.com/sirupsen/logrus/pull/677

dgsb commented 6 years ago

677 has been merged