logger

package
v0.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug writes to log iff debug is set

func Fatal

func Fatal(v ...interface{})

Fatal is equivalent to Print() followed by a call to os.Exit(1).

func Fatalf

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

Fatalf is equivalent to Printf() followed by a call to os.Exit(1).

func Info

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

Info writes to log un-throttled

func LastLine

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

LastLine overwrites last line of stdout without creating a new line

func LastLineThrottled

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

LastLineThrottled overwrites last line of stdout without creating a new line, throttled

func Printf

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

Printf calls Output to print to the standard Arguments are handled in the manner of fmt.Printf.

func PrintfRawLn added in v0.6.1

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

PrintfRawLn calls Output to print to the standard stdout (without logger). Arguments are handled in the manner of fmt.Printf.

func Println

func Println(v ...interface{})

Println calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func PrintlnThrottled

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

PrintlnThrottled writes to stdout (via fmt) but is throttled by emitRateMillis; throttled messages are dropped

func SetDebug

func SetDebug(d bool)

SetDebug enables or disables debugging logs

func SetEmitRateMillis

func SetEmitRateMillis(e int)

SetEmitRateMillis sets the throttle rate for throttle log methods

func SetVerbose

func SetVerbose(v bool)

SetVerbose enables or disables verbose logs

func Verbose

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

Verbose writes to log iff verbose is set

Types

This section is empty.

Jump to

Keyboard shortcuts

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