output

package
v0.0.0-...-d1245af Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpConfig

type DumpConfig struct {
	Level     string `toml:"level"`
	Path      string `toml:"path"`
	TimeBlock int    `toml:"time-block"`
}

func (*DumpConfig) Build

func (dc *DumpConfig) Build() (Output, error)

type Output

type Output interface {
	Write(p []byte, level string) (n int, err error)
	Sync() error
}

type StdoutConfig

type StdoutConfig struct {
	Level string `toml:"level"`
}

func (*StdoutConfig) Build

func (sc *StdoutConfig) Build() (Output, error)

type WriteSyncer

type WriteSyncer interface {
	io.Writer
	Sync() error
}

Jump to

Keyboard shortcuts

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