cli.test: colorize the success/failure
updating and adding vendored source to do it Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
03270d3d9e
commit
37d776ac40
408 changed files with 170562 additions and 132 deletions
12
vendor/github.com/sirupsen/logrus/json_formatter.go
generated
vendored
12
vendor/github.com/sirupsen/logrus/json_formatter.go
generated
vendored
|
@ -33,6 +33,9 @@ type JSONFormatter struct {
|
|||
// DisableTimestamp allows disabling automatic timestamps in output
|
||||
DisableTimestamp bool
|
||||
|
||||
// DataKey allows users to put all the log entry parameters into a nested dictionary at a given key.
|
||||
DataKey string
|
||||
|
||||
// FieldMap allows users to customize the names of keys for default fields.
|
||||
// As an example:
|
||||
// formatter := &JSONFormatter{
|
||||
|
@ -58,7 +61,14 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
|
|||
data[k] = v
|
||||
}
|
||||
}
|
||||
prefixFieldClashes(data)
|
||||
|
||||
if f.DataKey != "" {
|
||||
newData := make(Fields, 4)
|
||||
newData[f.DataKey] = data
|
||||
data = newData
|
||||
}
|
||||
|
||||
prefixFieldClashes(data, f.FieldMap)
|
||||
|
||||
timestampFormat := f.TimestampFormat
|
||||
if timestampFormat == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue