juju: github.com/juju/juju/worker/raft/raftutil Index | Files

package raftutil

import "github.com/juju/juju/worker/raft/raftutil"

Index

Package Files

logging.go

type Logger Uses

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

Logger defines the logging methods the LoggoWriter requires.

type LoggoWriter Uses

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 Uses

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

Write is part of the io.Writer interface.

Package raftutil imports 1 packages (graph) and is imported by 9 packages. Updated 2018-07-08. Refresh now. Tools for package owners.