Skip to content

Commit

Permalink
godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
urso committed Jul 22, 2019
1 parent 8fb1185 commit b095bc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libbeat/processors/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ type Processor interface {
String() string
}

// NewList creates a new empty processor list.
// Additional processors can be added to the List field.
func NewList(log *logp.Logger) *Processors {
if log == nil {
log = logp.NewLogger(logName)
}
return &Processors{log: log}
}

// New creates a list of processors from a list of free user configurations.
func New(config PluginConfig) (*Processors, error) {
procs := NewList(nil)

Expand Down

0 comments on commit b095bc8

Please sign in to comment.