Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LogTypeDefault is the default log type LogTypeDefault = logtypes.LogTypeDefault // LogTypePII is the PII log type LogTypePII = logtypes.LogTypePII )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONLogGenerator ¶
type JSONLogGenerator struct {
// contains filtered or unexported fields
}
JSONLogGenerator generates JSON log data with configurable workers
func New ¶
func New(logger *zap.Logger, workers int, rate time.Duration, logType string) (*JSONLogGenerator, error)
New creates a new JSON log generator
func (*JSONLogGenerator) SetCountTracker ¶ added in v0.13.0
func (g *JSONLogGenerator) SetCountTracker(t *count.Tracker)
SetCountTracker sets the finite generation count tracker.
Click to show internal directories.
Click to hide internal directories.