log

package
v1.93.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err

func Err(err error)

func Error

func Error(format string, args ...interface{})

func Info

func Info(format string, args ...interface{})

func SetDefault

func SetDefault(logger *Logger)

func Verbose

func Verbose(format string, args ...interface{})

Types

type Logger

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

a logger suitable for a CLI: no printing of timestamps, filenames, etc.

func New

func New(enableVerbose bool) *Logger

func (*Logger) Err

func (l *Logger) Err(err error)

func (*Logger) Error

func (l *Logger) Error(format string, args ...interface{})

func (*Logger) Info

func (l *Logger) Info(format string, args ...interface{})

func (*Logger) Verbose

func (l *Logger) Verbose(format string, args ...interface{})

Jump to

Keyboard shortcuts

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