scope

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

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.

func (*ScopeNameParserOperator) Process

func (p *ScopeNameParserOperator) Process(ctx context.Context, entry *entry.Entry) error

Process will parse logger name from an entry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL