updated README and added reference

This commit is contained in:
Matt Price 2014-08-13 13:36:59 -04:00
parent af9d545893
commit e2a44689a6
2 changed files with 2 additions and 1 deletions

View File

@ -296,6 +296,7 @@ The built-in logging formatters are:
without colors.
* *Note:* to force colored output when there is no TTY, set the `ForceColors`
field to `true`.
* *Note:* to force no colored output set the `DisableColors` field to `true`
* `logrus.JSONFormatter`. Logs fields as JSON.
Third party logging formatters:

View File

@ -35,7 +35,7 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
prefixFieldClashes(entry)
if (f.ForceColors || IsTerminal()) && !DisableColors {
if (f.ForceColors || IsTerminal()) && !f.DisableColors {
levelText := strings.ToUpper(entry.Data["level"].(string))[0:4]
levelColor := blue