Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Logf(loggo.Level, string, ...interface{})
}

Logger defines the logging methods the LoggoWriter requires.

type LoggoWriter

type LoggoWriter struct {
	Logger Logger
	Level  loggo.Level
}

LoggoWriter is an io.Writer that will call the embedded logger's Log method for each Write, using the specified log level.

func (*LoggoWriter) Write

func (w *LoggoWriter) Write(p []byte) (int, error)

Write is part of the io.Writer interface.

Source Files