Skip to content

Commit dbaddd4

Browse files
authored
Update README.md
1 parent 6dd95c3 commit dbaddd4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Human-readable log formatter, converts _logrus_ fields to a nested structure:
1111

1212
```go
1313
type Formatter struct {
14-
FieldsOrder []string // default: fields sorted alphabetically
15-
TimestampFormat string // default: time.StampMilli = "Jan _2 15:04:05.000"
16-
HideKeys bool // show [fieldValue] instead of [fieldKey:fieldValue]
17-
NoColors bool // disable colors
18-
NoFieldsColors bool // color only level, default is level + fields
19-
ShowFullLevel bool // true to show full level [WARNING] instead [WARN]
14+
FieldsOrder []string // by default fields are sorted alphabetically
15+
TimestampFormat string // by default time.StampMilli = "Jan _2 15:04:05.000" is used
16+
HideKeys bool // to show only [fieldValue] instead of [fieldKey:fieldValue]
17+
NoColors bool // to disable all colors
18+
NoFieldsColors bool // to disable colors only on fields and keep levels colored
19+
ShowFullLevel bool // to show full level (e.g. [WARNING] instead of [WARN])
2020
}
2121
```
2222

0 commit comments

Comments
 (0)