log

package
v0.0.0-...-8b28c38 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

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

func DedupedErrorf

func DedupedErrorf(logTypeLimit int, format string, a ...interface{})

func DedupedInfof

func DedupedInfof(logTypeLimit int, format string, a ...interface{})

func DedupedWarningf

func DedupedWarningf(logTypeLimit int, format string, a ...interface{})

func Errorf

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

func Fatalf

func Fatalf(format string, a ...interface{})

func GetLogLevel

func GetLogLevel() string

func Info

func Info(msg string)

func Infof

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

func InitLogging

func InitLogging(showLogLevelSetMessage bool)

InitLogging sets standard configuration values for logging.

If showLogLevelSetMessage is true, will log an unleveled message specifying the log level post-init.

func Profile

func Profile(start time.Time, name string)

func ProfileWithThreshold

func ProfileWithThreshold(start time.Time, threshold time.Duration, name string)

func Profilef

func Profilef(format string, a ...interface{})

func SetLogLevel

func SetLogLevel(l string) error

func Warnf

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

Types

type Profiler

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

func NewProfiler

func NewProfiler() *Profiler

func (*Profiler) Log

func (p *Profiler) Log(name string)

func (*Profiler) LogAll

func (p *Profiler) LogAll()

func (*Profiler) Start

func (p *Profiler) Start(name string)

func (*Profiler) Stop

func (p *Profiler) Stop(name string) time.Duration

Jump to

Keyboard shortcuts

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