appender

package
v0.0.0-...-ee5be7b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEncoder

func CreateEncoder(cfg EncoderConfig) (zapcore.Encoder, error)

func NewWriter

func NewWriter(name string, config *common.Config) (zapcore.WriteSyncer, error)

func RegisterEncoderType

func RegisterEncoderType(name string, gen EncoderFactory)

func RegisterWriterType

func RegisterWriterType(name string, f WriterFactory)

Types

type Appender

type Appender struct {
	Writer  zapcore.WriteSyncer
	Encoder zapcore.Encoder
}

func CreateAppender

func CreateAppender(writerType string, config *common.Config) (*Appender, error)

type EncoderConfig

type EncoderConfig struct {
	Namespace common.ConfigNamespace `logos-config:",inline"`
}

type EncoderFactory

type EncoderFactory func(*common.Config) (zapcore.Encoder, error)

type WriterFactory

type WriterFactory func(config *common.Config) (zapcore.WriteSyncer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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