Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(formatter *logrus.JSONFormatter)
Option represents a JSON formatter option.
func WithDataKey ¶
WithDataKey sets formatter's data key to value.
func WithDisableHTMLEscape ¶
WithDisableHTMLEscape sets formatter's disable HTML escape to value.
func WithDisableTimestamp ¶
WithDisableTimestamp sets formatter's disable timestamp to value.
func WithFieldMap ¶
WithFieldMap sets formatter's field map to value.
func WithPrettyPrint ¶
WithPrettyPrint sets formatter's pretty print to value.
func WithTimestampFormat ¶
WithTimestampFormat sets formatter's timestamp format to value. The format to use is the same than for time.Format or time.Parse from the standard library.
Click to show internal directories.
Click to hide internal directories.