print

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: BSD-3-Clause Imports: 8 Imported by: 5

Documentation

Index

Constants

View Source
const (
	LOG_SILENCE = iota
	LOG_INFO    = iota
	LOG_DEBUG   = iota
)

Variables

This section is empty.

Functions

func DebugFunc

func DebugFunc()

func Debugf

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

func Debugln

func Debugln(text string)

func ErrorWrapf added in v1.1.0

func ErrorWrapf(wrappedError error, format string, v ...interface{}) error

ErrorWrapf creates an error out of a formatted string using 'format' with arguments from 'v' and wraps it with 'wrappedError', along with the file and line number this function was called from. XXX One caveat here: you can only propagate one error

func Errorf

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

ErrorWrapf creates an error out of a formatted string using 'format' with arguments from 'v', along with the file and line number this function was called from. XXX One caveat here: you can't use error propagation using %w. If you want that, use ErrorWrapf

func InfoFunc

func InfoFunc()

func Infof

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

func Infoln

func Infoln(text string)

func SetLevel

func SetLevel(level uint)

func SetLogFile

func SetLogFile(fileNamePrefix string)

func Warnf

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

func Warnln

func Warnln(v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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