raftutil

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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