output

package
v0.0.0-...-4aef51c Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncWriterConfig

type AsyncWriterConfig struct {
	QueueLength      int
	Writer           io.Writer
	IsQueueBlocking  bool
	OnMessageDropped func(msg []byte)
}

type ClosableWriter

type ClosableWriter interface {
	io.Closer
	io.Writer
}

func NewAsyncWriter

func NewAsyncWriter(cfg AsyncWriterConfig) ClosableWriter

type EventWriter

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

func NewEventWriter

func NewEventWriter(cfg EventWriterConfig) *EventWriter

func (*EventWriter) HandlerOf

func (sink *EventWriter) HandlerOf(site *spi.LogSite) spi.EventHandler

type EventWriterConfig

type EventWriterConfig struct {
	Format Format
	Writer io.Writer
}

type Format

type Format interface {
	FormatterOf(site *spi.LogSite) Formatter
}

type Formatter

type Formatter interface {
	Format(space []byte, event *spi.Event) []byte
}

type Formatters

type Formatters []Formatter

func (Formatters) Format

func (formatters Formatters) Format(space []byte, event *spi.Event) []byte

type JsonFormat

type JsonFormat struct {
}

func (*JsonFormat) FormatterOf

func (format *JsonFormat) FormatterOf(site *spi.LogSite) Formatter

Directories

Path Synopsis
Package lumberjack provides a rolling logger.
Package lumberjack provides a rolling logger.

Jump to

Keyboard shortcuts

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