destination

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DataLoggerKey = dataLoggerKey("dataLogger")

DataLoggerKey data logger context key

View Source
const DataMultiLoggerKey = dataMultiLoggerKey("dataMultiLogger")

DataLoggerKey data logger context key

Variables

This section is empty.

Functions

func NewDataLogger

func NewDataLogger(ctx context.Context, reporter processor.Reporter) (context.Context, error)

NewDataLogger creates a data logger

func NewDataMultiLogger

func NewDataMultiLogger(ctx context.Context, keyName string, reporter processor.Reporter) (context.Context, error)

NewDataMultiLogger creates a data multi logger

Types

type MultiLogger

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

MultiLogger represents a multi logger

func (*MultiLogger) Close

func (m *MultiLogger) Close() (err error)

Close closes all loggers

func (*MultiLogger) Get

func (m *MultiLogger) Get(key string) (*log.Logger, error)

Get gets or creates a new logger

Jump to

Keyboard shortcuts

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