Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldSerializerFormatter ¶ added in v0.4.8
type FieldSerializerFormatter struct { Formatter logrus.Formatter UseJSONRawMessage bool // If true, then json.RawMessage type will be used for fields serialized to JSON. }
FieldSerializerFormatter will serialize the log field values to basic types. Other types will be serialized to JSON.
type JSONFormatter ¶
type JSONFormatter struct {
// contains filtered or unexported fields
}
JSONFormatter is a wrapper for the original JSONFormatter from the logrus package. It changes the timezone of logs to UTC.
type XFilterFormatter ¶
XFilterFormatter removes all fields with the "x-" prefix. This will allow adding more data fields to logs without making the CLI output to messy.
Click to show internal directories.
Click to hide internal directories.