logging

package
v0.0.0-...-e035375 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush(iow io.Writer)

Flush flushes all loggers

func GetLogger

func GetLogger(prefix string) *log.Logger

GetLogger returns an instance of logger for a given prefix

Types

type Writer

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

Writer defines an in-memory writer that aggregates common log messages

func NewWriter

func NewWriter() *Writer

NewWriter creates a new Writer

func (*Writer) Flush

func (w *Writer) Flush(iow io.Writer)

Flush flushes the Writer

func (*Writer) Write

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

Write implements Writer interface

Jump to

Keyboard shortcuts

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