audit

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: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(v ...interface{})

Log outputs a log message from the arguments

func Logf

func Logf(f string, v ...interface{})

Logf outputs a formatted log message from the arguments

func SetOutput

func SetOutput(out io.Writer)

SetOutput updates the io.Writer for the package as well as any external writers created by the package

func Writer

func Writer() *external.Writer

Writer returns a new *external.Writer suitable for injection into 3rd-party logging packages.

Types

type Logger

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

Logger wraps a *log.Logger with some configuration and convenience methods

func NewLogger

func NewLogger(out io.Writer) *Logger

NewLogger returns a *Logger

func (*Logger) Log

func (l *Logger) Log(v ...interface{})

Log outputs a log message from the arguments

func (*Logger) Logf

func (l *Logger) Logf(f string, v ...interface{})

Logf outputs a formatted log message from the arguments

func (*Logger) Output

func (l *Logger) Output(skip int, s string)

Output writes the output for a logging event

func (*Logger) SetOutput

func (l *Logger) SetOutput(out io.Writer)

SetOutput updates the embedded logger's output

func (*Logger) Write

func (l *Logger) Write(data []byte) (int, error)

Write implements io.Writer and allows the logger to be used as an embedded log writer.

func (*Logger) Writer

func (l *Logger) Writer() *external.Writer

Writer returns a new *external.Writer suitable for injection into 3rd-party logging packages.

Jump to

Keyboard shortcuts

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