raftutil

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHCLLogger

func NewHCLLogger(name string, logger Logger) hclog.Logger

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
	Prefix string
}

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