logging

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogWriter

func GetLogWriter(cfg *config.Configuration) (io.WriteCloser, error)

GetLogWriter returns a logwriter which is used for debug logs.

Types

type Writer added in v0.7.0

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter added in v0.7.0

func NewWriter(targetWriter io.Writer, logger *logrus.Logger, loggingPrefix string) Writer

NewWriter returns a new Writer that also logs the output it writes.

func (Writer) Write added in v0.7.0

func (w Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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