writer

package
v0.0.0-...-c130b31 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriter

type LogWriter struct {
	Box    Logger
	Source string
	// contains filtered or unexported fields
}

func NewLogWriter

func NewLogWriter(l Logger) LogWriter

func (*LogWriter) Async

func (w *LogWriter) Async()

func (*LogWriter) Close

func (w *LogWriter) Close()

func (*LogWriter) Wait

func (w *LogWriter) Wait(timeout time.Duration) error

func (*LogWriter) Write

func (w *LogWriter) Write(data []byte) (int, error)

Write writes and logs the data.

type Logger

type Logger interface {
	Log(string, string, string) error
}

Jump to

Keyboard shortcuts

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