logging

package
v0.0.0-...-e285db0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "logger-decorator"

Variables

This section is empty.

Functions

This section is empty.

Types

type Decorator

type Decorator struct {
	// contains filtered or unexported fields
}

func NewDecorator

func NewDecorator(extractors ...LogFieldExtractor) *Decorator

func (*Decorator) Decorate

func (d *Decorator) Decorate(ctx context.Context, logger nacelle.Logger) nacelle.Logger

func (*Decorator) Register

func (d *Decorator) Register(extractor LogFieldExtractor)

type Initializer

type Initializer struct {
	Services nacelle.ServiceContainer `service:"container"`
	// contains filtered or unexported fields
}

func NewInitializer

func NewInitializer(extractors []LogFieldExtractor) *Initializer

func (*Initializer) Init

func (i *Initializer) Init(config nacelle.Config) error

type LogFieldExtractor

type LogFieldExtractor func(ctx context.Context, fields nacelle.LogFields)

Jump to

Keyboard shortcuts

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