Add DisableLevelTruncation description to README

This commit is contained in:
Tony Lee 2017-01-24 23:05:25 +11:00
parent 31c0a5e6d9
commit 1f59c9ad12
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,8 @@ The built-in logging formatters are:
* *Note:* to force colored output when there is no TTY, set the `ForceColors` * *Note:* to force colored output when there is no TTY, set the `ForceColors`
field to `true`. To force no colored output even if there is a TTY set the field to `true`. To force no colored output even if there is a TTY set the
`DisableColors` field to `true` `DisableColors` field to `true`
* When colors are enabled, levels are truncated to 4 characters by default. To disable
truncation set the `DisableLevelTruncation` field to `true`.
* `logrus.JSONFormatter`. Logs fields as JSON. * `logrus.JSONFormatter`. Logs fields as JSON.
Third party logging formatters: Third party logging formatters: