Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScopeNameParserConfig ¶
type ScopeNameParserConfig struct { helper.TransformerConfig `mapstructure:",squash" yaml:",inline"` helper.ScopeNameParser `mapstructure:",omitempty,squash" yaml:",omitempty,inline"` }
ScopeNameParserConfig is the configuration of a logger name parser operator.
func NewScopeNameParserConfig ¶
func NewScopeNameParserConfig(operatorID string) *ScopeNameParserConfig
NewScopeNameParserConfig creates a new logger name parser config with default values
func (ScopeNameParserConfig) Build ¶
func (c ScopeNameParserConfig) Build(logger *zap.SugaredLogger) (operator.Operator, error)
Build will build a logger name parser operator.
type ScopeNameParserOperator ¶
type ScopeNameParserOperator struct { helper.TransformerOperator helper.ScopeNameParser }
ScopeNameParserOperator is an operator that parses logger name from a field to an entry.
Click to show internal directories.
Click to hide internal directories.