Back to

Package raftutil

Latest Go to latest

The latest major version is .

Published: 2 hours ago | License: AGPL-3.0 | Module:


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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier