external

package
v0.0.0-...-2eeca3e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer is an optionally-prefixed writer for 3rd-party logging packages.

func NewWriter

func NewWriter(out io.Writer) *Writer

NewWriter wraps an io.Writer with a *log.Logger which doesn't add any prefixing by default.

func (*Writer) Log

func (w *Writer) Log(v ...interface{})

Log implements the aws.Logger interface, among others

func (*Writer) Prefix

func (w *Writer) Prefix(prefix string) *Writer

Prefix optionally sets a logging prefix for the writer

func (*Writer) SetOutput

func (w *Writer) SetOutput(out io.Writer)

SetOutput updates the embedded *log.Logger's output

func (*Writer) Write

func (w *Writer) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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