Merge pull request #407 from roganartu/master

Added option to disable level text truncation in default text formatter
This commit is contained in:
Stephen Day
2018-03-29 15:59:52 -07:00
committed by GitHub
3 changed files with 48 additions and 1 deletions
+2
View File
@@ -372,6 +372,8 @@ The built-in logging formatters are:
field to `true`. To force no colored output even if there is a TTY set the
`DisableColors` field to `true`. For Windows, see
[github.com/mattn/go-colorable](https://github.com/mattn/go-colorable).
* When colors are enabled, levels are truncated to 4 characters by default. To disable
truncation set the `DisableLevelTruncation` field to `true`.
* All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#TextFormatter).
* `logrus.JSONFormatter`. Logs fields as JSON.
* All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#JSONFormatter).