raftutil

package
Version: v0.0.0-...-3d7d6b0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: AGPL-3.0 Imports: 3 Imported by: 3

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL