logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerboseF = 1 << iota
	ExtraVerboseF
)

Variables

This section is empty.

Functions

func Error

func Error(v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func ExtraVerbose

func ExtraVerbose(v ...interface{})

func ExtraVerbosef

func ExtraVerbosef(format string, v ...interface{})

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func MultiLineError added in v0.1.7

func MultiLineError(err error)

func Verbose

func Verbose(v ...interface{})

func Verbosef

func Verbosef(format string, v ...interface{})

func Warning

func Warning(v ...interface{})

func Warningf

func Warningf(format string, v ...interface{})

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var DefaultLogger *Logger = New("", 0)
var DiscardLogger *Logger = New("", 0, ioutil.Discard)

func New

func New(prefix string, flag int, w ...io.Writer) *Logger

func (*Logger) Error

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

func (*Logger) Errorf

func (l *Logger) Errorf(format string, v ...interface{})

func (*Logger) ExtraVerbose

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

func (*Logger) ExtraVerbosef

func (l *Logger) ExtraVerbosef(format string, v ...interface{})

func (*Logger) Info

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

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...interface{})

func (*Logger) InteractiveInfof added in v0.1.7

func (l *Logger) InteractiveInfof(format string, v ...interface{})

func (*Logger) MultiLineError added in v0.1.7

func (l *Logger) MultiLineError(err error)

func (*Logger) Println added in v0.1.7

func (l *Logger) Println()

func (*Logger) SetVerbose

func (l *Logger) SetVerbose(level int)

func (*Logger) Verbose

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

func (*Logger) Verbosef

func (l *Logger) Verbosef(format string, v ...interface{})

func (*Logger) Warning

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

func (*Logger) Warningf

func (l *Logger) Warningf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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